File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -19,19 +19,21 @@ jobs:
1919 - name : Checkout
2020 uses : actions/checkout@v4
2121 with :
22- fetch-depth : 0 # serve per i tag
22+ fetch-depth : 0
23+ persist-credentials : false
2324
24- - name : Configure Git
25+ - name : Configure git with PAT
2526 run : |
2627 git config user.name "github-actions[bot]"
2728 git config user.email "github-actions[bot]@users.noreply.github.com"
29+ git remote set-url origin "https://x-access-token:${{ secrets.PAT_PYGEM_PUSH }}@github.com/${{ github.repository }}.git"
2830
2931 - name : Check if the tag is already existing
3032 run : |
3133 TAG="${{ inputs.tag_name }}"
3234 git fetch --tags
3335 if git rev-parse -q --verify "refs/tags/$TAG" >/dev/null; then
34- echo "❌ Tag $TAG esiste già "
36+ echo "❌ Tag $TAG already exists "
3537 exit 1
3638 fi
3739
You can’t perform that action at this time.
0 commit comments