We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5c210f commit df86f69Copy full SHA for df86f69
1 file changed
.github/workflows/create-tag.yml
@@ -19,19 +19,21 @@ jobs:
19
- name: Checkout
20
uses: actions/checkout@v4
21
with:
22
- fetch-depth: 0 # serve per i tag
+ fetch-depth: 0
23
+ persist-credentials: false
24
- - name: Configure Git
25
+ - name: Configure git with PAT
26
run: |
27
git config user.name "github-actions[bot]"
28
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"
30
31
- name: Check if the tag is already existing
32
33
TAG="${{ inputs.tag_name }}"
34
git fetch --tags
35
if git rev-parse -q --verify "refs/tags/$TAG" >/dev/null; then
- echo "❌ Tag $TAG esiste già"
36
+ echo "❌ Tag $TAG already exists"
37
exit 1
38
fi
39
0 commit comments