mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2025-04-24 18:02:15 +00:00
Chore: set default in action.yml
This commit is contained in:
parent
e96cb854f9
commit
6979495e69
2 changed files with 5 additions and 7 deletions
|
@ -10,11 +10,11 @@ Upload or download the assets of a release to a Forgejo instance.
|
||||||
|
|
||||||
| name | description | required | default |
|
| name | description | required | default |
|
||||||
| --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| `url` | <p>URL of the Forgejo instance</p> | `false` | `${{ env.GITHUB_SERVER_URL }}` |
|
| `url` | <p>URL of the Forgejo instance</p> | `false` | `""` |
|
||||||
| `repo` | <p>owner/project relative to the URL</p> | `false` | `${{ github.repository }}` |
|
| `repo` | <p>owner/project relative to the URL</p> | `false` | `""` |
|
||||||
| `tag` | <p>Tag of the release</p> | `false` | `${{ github.ref_name }}` |
|
| `tag` | <p>Tag of the release</p> | `false` | `""` |
|
||||||
| `title` | <p>Title of the release (defaults to tag)</p> | `false` | `""` |
|
| `title` | <p>Title of the release (defaults to tag)</p> | `false` | `""` |
|
||||||
| `sha` | <p>SHA of the release</p> | `false` | `${{ github.sha }}` |
|
| `sha` | <p>SHA of the release</p> | `false` | `""` |
|
||||||
| `token` | <p>Forgejo application token</p> | `false` | `${{ secrets.GITHUB_TOKEN }}` |
|
| `token` | <p>Forgejo application token</p> | `false` | `${{ secrets.GITHUB_TOKEN }}` |
|
||||||
| `release-dir` | <p>Directory in whichs release assets are uploaded or downloaded</p> | `true` | `""` |
|
| `release-dir` | <p>Directory in whichs release assets are uploaded or downloaded</p> | `true` | `""` |
|
||||||
| `release-notes` | <p>Release notes</p> | `false` | `""` |
|
| `release-notes` | <p>Release notes</p> | `false` | `""` |
|
||||||
|
|
|
@ -16,6 +16,7 @@ inputs:
|
||||||
description: 'SHA of the release'
|
description: 'SHA of the release'
|
||||||
token:
|
token:
|
||||||
description: 'Forgejo application token'
|
description: 'Forgejo application token'
|
||||||
|
default: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
release-dir:
|
release-dir:
|
||||||
description: 'Directory in whichs release assets are uploaded or downloaded'
|
description: 'Directory in whichs release assets are uploaded or downloaded'
|
||||||
required: true
|
required: true
|
||||||
|
@ -89,9 +90,6 @@ runs:
|
||||||
export HIDE_ARCHIVE_LINK="${{ inputs.hide-archive-link }}"
|
export HIDE_ARCHIVE_LINK="${{ inputs.hide-archive-link }}"
|
||||||
|
|
||||||
export TOKEN="${{ inputs.token }}"
|
export TOKEN="${{ inputs.token }}"
|
||||||
if test -z "$TOKEN"; then
|
|
||||||
export TOKEN="${{ secrets.GITHUB_TOKEN }}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
export RELEASE_DIR="${{ inputs.release-dir }}"
|
export RELEASE_DIR="${{ inputs.release-dir }}"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue