mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2026-10-25 10:56:04 +00:00
feat: add ability to specify release-notes-assistant config
This commit is contained in:
parent
585a6614e8
commit
c5d1f60310
|
|
@ -28,6 +28,7 @@ Upload or download the assets of a release to a Forgejo instance.
|
|||
| `override` | <p>Override an existing release by the same <code>{tag}</code></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-config` | <p>Path to Release Notes Assistant config file</p> | `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" -->
|
||||
|
|
|
|||
|
|
@ -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 }}"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue