diff --git a/.github/workflows/pr-merged.yml b/.github/workflows/pr-merged.yml index 181733b..e7d5929 100644 --- a/.github/workflows/pr-merged.yml +++ b/.github/workflows/pr-merged.yml @@ -56,7 +56,7 @@ jobs: readme-filepath: ./README-dockerhub.md - name: Update tag to latest run: | - git config --global user.name "Aqua Security" - git config --global user.email "user@aquasec.com" + git config --global url.https://${{ secrets.PR_CREATION_TOKEN }}@github.com/.insteadOf https://github.com/ git tag -f -a ${{ env.new_version }} -m "Update version ${{ env.new_version }} to the latest commit" git push -f origin refs/tags/${{ env.new_version }} + git config --global url.https://github.com/.insteadOf https://${{ secrets.PR_CREATION_TOKEN }}@github.com/