Update .gitea/workflows/release.yaml
All checks were successful
Changelog / changelog (push) Successful in 23s

This commit is contained in:
2025-12-26 21:48:07 +00:00
parent 01ae039b17
commit 862316dc1c

View File

@@ -58,10 +58,10 @@ jobs:
echo "TAG=$TAG" >> $GITHUB_ENV echo "TAG=$TAG" >> $GITHUB_ENV
echo "ZIP_PATH=$ZIP_PATH" >> $GITHUB_ENV echo "ZIP_PATH=$ZIP_PATH" >> $GITHUB_ENV
- name: Create and push tag (uses RELEASE_PAT) - name: Create and push tag (uses CHANGELOG_PAT)
shell: bash shell: bash
env: env:
RELEASE_PAT: ${{ secrets.CHANGELOG_PAT }} CHANGELOG_PAT: ${{ secrets.CHANGELOG_PAT }}
run: | run: |
set -e set -e
@@ -77,7 +77,7 @@ jobs:
origin_url="https://$host/$path" origin_url="https://$host/$path"
fi fi
authed_url="$(echo "$origin_url" | sed -E "s#^https://#https://oauth2:${RELEASE_PAT}@#")" authed_url="$(echo "$origin_url" | sed -E "s#^https://#https://oauth2:${CHANGELOG_PAT}@#")"
# Push the tag # Push the tag
git push "$authed_url" "refs/tags/$TAG" --force git push "$authed_url" "refs/tags/$TAG" --force
@@ -85,7 +85,7 @@ jobs:
- name: Create release + upload asset to Gitea - name: Create release + upload asset to Gitea
shell: bash shell: bash
env: env:
RELEASE_PAT: ${{ secrets.CHANGELOG_PAT }} CHANGELOG_PAT: ${{ secrets.CHANGELOG_PAT }}
run: | run: |
set -e set -e