We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 398e8ff commit ac0a7d5Copy full SHA for ac0a7d5
.github/workflows/publish_nuget.yml
@@ -62,12 +62,12 @@ jobs:
62
ref: ${{ env.TAG }}
63
fetch-depth: 0
64
65
- # Optional: verify tag really points to master
66
- name: Verify tag points to master
+ shell: bash
67
run: |
68
- TAG_COMMIT=$(git rev-list -n 1 ${{ env.TAG }})
69
- if ! git branch -r --contains $TAG_COMMIT | grep -q 'origin/master'; then
70
- echo "Tag ${{ env.TAG }} is not on master — skipping publish"
+ TAG_COMMIT=$(git rev-list -n 1 "$TAG")
+ if ! git branch -r --contains "$TAG_COMMIT" | grep -q 'origin/master'; then
+ echo "Tag $TAG is not on master — skipping publish"
71
exit 78
72
fi
73
0 commit comments