diff --git a/README.md b/README.md index 3a52c29..2fc20f6 100644 --- a/README.md +++ b/README.md @@ -10,11 +10,11 @@ Upload or download the assets of a release to a Forgejo instance. | name | description | required | default | | --- | --- | --- | --- | -| `url` |
URL of the Forgejo instance
| `false` | `${{ env.GITHUB_SERVER_URL }}` | -| `repo` |owner/project relative to the URL
| `false` | `${{ github.repository }}` | -| `tag` |Tag of the release
| `false` | `${{ github.ref_name }}` | +| `url` |URL of the Forgejo instance
| `false` | `""` | +| `repo` |owner/project relative to the URL
| `false` | `""` | +| `tag` |Tag of the release
| `false` | `""` | | `title` |Title of the release (defaults to tag)
| `false` | `""` | -| `sha` |SHA of the release
| `false` | `${{ github.sha }}` | +| `sha` |SHA of the release
| `false` | `""` | | `token` |Forgejo application token
| `false` | `${{ secrets.GITHUB_TOKEN }}` | | `release-dir` |Directory in whichs release assets are uploaded or downloaded
| `true` | `""` | | `release-notes` |Release notes
| `false` | `""` | diff --git a/action.yml b/action.yml index d122d6e..0a34b31 100644 --- a/action.yml +++ b/action.yml @@ -16,6 +16,7 @@ inputs: description: 'SHA of the release' token: description: 'Forgejo application token' + default: '${{ secrets.GITHUB_TOKEN }}' release-dir: description: 'Directory in whichs release assets are uploaded or downloaded' required: true @@ -89,9 +90,6 @@ runs: export HIDE_ARCHIVE_LINK="${{ inputs.hide-archive-link }}" export TOKEN="${{ inputs.token }}" - if test -z "$TOKEN"; then - export TOKEN="${{ secrets.GITHUB_TOKEN }}" - fi export RELEASE_DIR="${{ inputs.release-dir }}"