Push tags with PAT

This commit is contained in:
DerDavidBohl
2025-10-06 17:50:15 +02:00
parent 7b1500b30c
commit 0b06387a37

View File

@@ -47,8 +47,13 @@ jobs:
git config user.email "actions@github.com"
git add ./backend/pom.xml ./frontend/package.json ./frontend/package-lock.json
git commit -m "Bump version to ${{ github.event.inputs.version }}"
git push
git push https://x-access-token:${GH_PAT}@github.com/${GITHUB_REPOSITORY}.git HEAD:${GITHUB_REF_NAME}
# Tag pushen
git push https://x-access-token:${GH_PAT}@github.com/${GITHUB_REPOSITORY}.git v${{ github.event.inputs.version }}
env:
GH_PAT: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_REF_NAME: ${{ github.ref_name }}
- name: Create and push tag
run: |
git tag v${{ github.event.inputs.version }}