ci: fixexed tag release failing

This commit is contained in:
objz committed 2026-04-26 22:06:43 +02:00
1 parent ec016293cb
commit 2acbec94c9
1 file changed
+6 -6
+6 -6
View File
@@ -77,18 +77,18 @@ jobs:
- name: create release tag - name: create release tag
if: ${{ steps.release.outputs.should-release == 'true' }} if: ${{ steps.release.outputs.should-release == 'true' }}
env: env:
GH_TOKEN: ${{ secrets.RELEASE_TOKEN }} RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
TAG_NAME: ${{ steps.release.outputs.tag }} TAG_NAME: ${{ steps.release.outputs.tag }}
TAG_SHA: ${{ steps.release.outputs.sha }}
shell: bash shell: bash
run: | run: |
set -euo pipefail set -euo pipefail
if [[ -z "${GH_TOKEN}" ]]; then if [[ -z "${RELEASE_TOKEN}" ]]; then
echo "RELEASE_TOKEN is required so the created tag can trigger the generated release workflow." >&2 echo "RELEASE_TOKEN is required so the created tag can trigger the generated release workflow." >&2
exit 1 exit 1
fi fi
gh api "repos/${{ github.repository }}/git/refs" \ git config user.name "github-actions[bot]"
-f "ref=refs/tags/${TAG_NAME}" \ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
-f "sha=${TAG_SHA}" git tag "${TAG_NAME}"
git push "https://x-access-token:${RELEASE_TOKEN}@github.com/${{ github.repository }}.git" "${TAG_NAME}"