docs: lint and fix

This commit is contained in:
Michael Kriese 2026-01-21 10:34:03 +01:00
parent b93b6e8f70
commit 7556e6fc5f
No known key found for this signature in database
GPG key ID: F8D7748549A5986A
3 changed files with 29 additions and 16 deletions

View file

@ -2,9 +2,21 @@ on: [ pull_request, push ]
jobs: jobs:
tests: tests:
runs-on: docker runs-on: docker
container:
image: data.forgejo.org/oci/node:24-trixie
steps: steps:
- uses: actions/checkout@v6 - uses: actions/checkout@v6
- name: lint action-docs
run: |
npx --yes action-docs -u
git diff --quiet || {
echo "[ERROR] Please apply the changes action-docs suggests:"
git diff --color=always
exit 1
}
- name: Unit tests of the supporting script forgejo-release.sh - name: Unit tests of the supporting script forgejo-release.sh
run: | run: |
testdata/forgejo-release-test.sh test_system_tea_bin testdata/forgejo-release-test.sh test_system_tea_bin

View file

@ -10,13 +10,13 @@ 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` | `${{ env.FORGEJO_SERVER_URL }}` |
| `repo` | <p>owner/project relative to the URL</p> | `false` | `${{ github.repository }}` | | `repo` | <p>owner/project relative to the URL</p> | `false` | `${{ forge.repository }}` |
| `tag` | <p>Tag of the release</p> | `false` | `${{ github.ref_name }}` | | `tag` | <p>Tag of the release</p> | `false` | `${{ forge.ref_name }}` |
| `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` | `${{ forge.sha }}` |
| `token` | <p>Forgejo application token (must have `write:repository`)</p> | `false` | `${{ secrets.GITHUB_TOKEN }}` | | `token` | <p>Forgejo application token (must have <code>write:repository</code>)</p> | `false` | `${{ forge.token }}` |
| `release-dir` | <p>Directory in whichs release assets are uploaded or downloaded</p> | `true` | `""` | | `release-dir` | <p>Directory in which release assets are uploaded or downloaded</p> | `false` | `dist/release` |
| `release-notes` | <p>Release notes</p> | `false` | `""` | | `release-notes` | <p>Release notes</p> | `false` | `""` |
| `direction` | <p>Can either be <code>download</code> or <code>upload</code></p> | `true` | `""` | | `direction` | <p>Can either be <code>download</code> or <code>upload</code></p> | `true` | `""` |
| `gpg-private-key` | <p>GPG Private Key to sign the release artifacts</p> | `false` | `""` | | `gpg-private-key` | <p>GPG Private Key to sign the release artifacts</p> | `false` | `""` |
@ -28,6 +28,7 @@ Upload or download the assets of a release to a Forgejo instance.
| `prerelease` | <p>Mark Release as Pre-Release</p> | `false` | `false` | | `prerelease` | <p>Mark Release as Pre-Release</p> | `false` | `false` |
| `release-notes-assistant` | <p>Generate release notes with Release Notes Assistant</p> | `false` | `false` | | `release-notes-assistant` | <p>Generate release notes with Release Notes Assistant</p> | `false` | `false` |
| `hide-archive-link` | <p>Hide the archive links</p> | `false` | `false` | | `hide-archive-link` | <p>Hide the archive links</p> | `false` | `false` |
| `skip-assets` | <p>Skip uploading release assets</p> | `false` | `false` |
<!-- action-docs-inputs source="action.yml" --> <!-- action-docs-inputs source="action.yml" -->
## Examples ## Examples
@ -83,5 +84,5 @@ Using [action-docs](https://github.com/npalm/action-docs):
```shell ```shell
# Edit the action.yml file and run: # Edit the action.yml file and run:
action-docs --update-readme npx action-docs --update-readme
``` ```

View file

@ -19,11 +19,11 @@ inputs:
description: 'SHA of the release' description: 'SHA of the release'
default: '${{ forge.sha }}' default: '${{ forge.sha }}'
token: token:
description: 'Forgejo application token' description: 'Forgejo application token (must have `write:repository`)'
default: '${{ forge.token }}' default: '${{ forge.token }}'
release-dir: release-dir:
description: 'Directory in which release assets are uploaded or downloaded' description: 'Directory in which release assets are uploaded or downloaded'
default: '' default: 'dist/release'
release-notes: release-notes:
description: 'Release notes' description: 'Release notes'
direction: direction:
@ -37,22 +37,22 @@ inputs:
description: 'Number of times to retry if the release is not ready (default 1)' description: 'Number of times to retry if the release is not ready (default 1)'
download-latest: download-latest:
description: 'Download the latest release' description: 'Download the latest release'
default: false default: 'false'
verbose: verbose:
description: 'Increase the verbosity level' description: 'Increase the verbosity level'
default: false default: 'false'
override: override:
description: 'Override an existing release by the same `{tag}`' description: 'Override an existing release by the same `{tag}`'
default: false default: 'false'
prerelease: prerelease:
description: 'Mark Release as Pre-Release' description: 'Mark Release as Pre-Release'
default: false default: 'false'
release-notes-assistant: release-notes-assistant:
description: 'Generate release notes with Release Notes Assistant' description: 'Generate release notes with Release Notes Assistant'
default: false default: 'false'
hide-archive-link: hide-archive-link:
description: 'Hide the archive links' description: 'Hide the archive links'
default: false default: 'false'
skip-assets: skip-assets:
description: Skip uploading release assets description: Skip uploading release assets
default: 'false' default: 'false'