mirror of
https://github.com/DerDavidBohl/dirigent-spring.git
synced 2026-01-06 00:40:07 -06:00
Push tags with PAT
This commit is contained in:
9
.github/workflows/publish.yml
vendored
9
.github/workflows/publish.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user