ci: move release commit tag

This commit is contained in:
Dan Kluser
2026-06-02 21:53:31 +02:00
parent 2ea14c3e0c
commit 47b35f48dc
2 changed files with 49 additions and 0 deletions

View File

@@ -169,6 +169,22 @@ jobs:
echo 'EOF'
} >> "$GITHUB_OUTPUT"
- name: Move latest tag to current commit
uses: actions/github-script@v7
with:
script: |
const ref = 'tags/latest';
try {
await github.rest.git.updateRef({
...context.repo, ref, sha: context.sha, force: true,
});
} catch (e) {
if (e.status !== 422) throw e;
await github.rest.git.createRef({
...context.repo, ref: 'refs/tags/latest', sha: context.sha,
});
}
- name: Create or update release
uses: softprops/action-gh-release@v3
with: