Skip to content

Commit df86f69

Browse files
authored
Update create-tag.yml
1 parent d5c210f commit df86f69

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/create-tag.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)