diff --git a/README.md b/README.md index a0fac14..f473100 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ Upload or download the assets of a release to a Forgejo instance. | `override` |
Override an existing release by the same {tag}
Mark Release as Pre-Release
| `false` | `false` | | `release-notes-assistant` |Generate release notes with Release Notes Assistant
| `false` | `false` | +| `release-notes-assistant-config` |Path to Release Notes Assistant config file
| `false` | `""` | | `hide-archive-link` |Hide the archive links
| `false` | `false` | | `skip-assets` |Skip uploading release assets
| `false` | `false` | diff --git a/action.yml b/action.yml index 40338c0..34596c3 100644 --- a/action.yml +++ b/action.yml @@ -52,6 +52,8 @@ inputs: release-notes-assistant: description: 'Generate release notes with Release Notes Assistant' default: 'false' + release-notes-assistant-config: + description: 'Path to Release Notes Assistant config file' hide-archive-link: description: 'Hide the archive links' default: 'false' @@ -89,6 +91,7 @@ runs: export PRERELEASE="${{ inputs.prerelease }}" export RELEASE_NOTES_ASSISTANT="${{ inputs.release-notes-assistant }}" + export RELEASE_NOTES_ASSISTANT_CONFIG="${{ inputs.release-notes-assistant-config }}" export RELEASE_NOTES_ASSISTANT_WORKDIR=${{ forge.action_path }}/rna export HIDE_ARCHIVE_LINK="${{ inputs.hide-archive-link }}" diff --git a/forgejo-release.sh b/forgejo-release.sh index 1c01f37..ed4c967 100755 --- a/forgejo-release.sh +++ b/forgejo-release.sh @@ -122,7 +122,7 @@ maybe_use_release_note_assistant() { curl --fail -s -S -o rna https://code.forgejo.org/forgejo/release-notes-assistant/releases/download/$RELEASE_NOTES_ASSISTANT_VERSION/release-notes-assistant chmod +x ./rna mkdir -p $RELEASE_NOTES_ASSISTANT_WORKDIR - ./rna --workdir=$RELEASE_NOTES_ASSISTANT_WORKDIR --storage release --storage-location "$TAG" --token "$TOKEN" --forgejo-url "$SCHEME://$HOST" --repository $REPO --token "$TOKEN" release "$TAG" + ./rna --workdir=$RELEASE_NOTES_ASSISTANT_WORKDIR ${RELEASE_NOTES_ASSISTANT_CONFIG:+--config "$RELEASE_NOTES_ASSISTANT_CONFIG"} --storage release --storage-location "$TAG" --token "$TOKEN" --forgejo-url "$SCHEME://$HOST" --repository $REPO --token "$TOKEN" release "$TAG" fi }