We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 447f45b commit 5d32e75Copy full SHA for 5d32e75
.github/workflows/shared-create-tags.yml
@@ -17,12 +17,18 @@ jobs:
17
steps:
18
- name: Checkout repository
19
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
20
+ with:
21
+ fetch-depth: 0
22
23
- name: Create or move tags and push
24
run: |
25
git config --local user.email "github-actions[bot]@users.noreply.github.com"
26
git config --local user.name "github-actions[bot]"
27
28
+ # Handle both pull request and push events
29
+ COMMIT_HASH="${{ github.event.pull_request.head.sha || github.sha }}
30
+ git checkout $COMMIT_HASH
31
+
32
# Parse JSON array of tags
33
TAGS='${{ inputs.tags }}'
34
echo "Creating tags: $TAGS"
0 commit comments