refactor(ci): replace inline annotation script with ah-annotations action
Remove the local add-annotations.sh script and the inline tag detection logic from the release workflow. Use the reusable GitHub Action volker-raschek/ah-annotations@v0.1.1 which handles tag detection and changelog generation internally. Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -70,11 +70,7 @@ jobs:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Add Artifacthub.io annotations
|
||||
run: |
|
||||
rc_pattern="\-rc([-\.][0-9]+)?$"
|
||||
NEW_TAG="$(git tag --sort=-version:refname | grep --invert-match --perl-regexp "${rc_pattern}" | head --lines 1)"
|
||||
OLD_TAG="$(git tag --sort=-version:refname | grep --invert-match --perl-regexp "${rc_pattern}" | head --lines 2 | tail --lines 1)"
|
||||
.gitea/scripts/add-annotations.sh "${OLD_TAG}" "${NEW_TAG}"
|
||||
uses: volker-raschek/ah-annotations@v0.1.1
|
||||
|
||||
- name: Extract meta information
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user