Skip to content

Commit ac0a7d5

Browse files
committed
detestable way of developing
1 parent 398e8ff commit ac0a7d5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/publish_nuget.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ jobs:
6262
ref: ${{ env.TAG }}
6363
fetch-depth: 0
6464

65-
# Optional: verify tag really points to master
6665
- name: Verify tag points to master
66+
shell: bash
6767
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"
68+
TAG_COMMIT=$(git rev-list -n 1 "$TAG")
69+
if ! git branch -r --contains "$TAG_COMMIT" | grep -q 'origin/master'; then
70+
echo "Tag $TAG is not on master — skipping publish"
7171
exit 78
7272
fi
7373

0 commit comments

Comments
 (0)