We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9aa531 commit 7e370a0Copy full SHA for 7e370a0
.github/workflows/publish_nuget.yml
@@ -15,6 +15,14 @@ jobs:
15
16
steps:
17
- uses: actions/checkout@v4
18
+ - name: Verify tag points to master
19
+ id: verify
20
+ run: |
21
+ TAG_COMMIT=$(git rev-list -n 1 ${{ github.ref_name }})
22
+ if ! git branch -r --contains $TAG_COMMIT | grep -q 'origin/master'; then
23
+ echo "Tag is not on master — skipping publish"
24
+ exit 78 # 78 = neutral in GitHub Actions
25
+ fi
26
27
- name: Set up .NET
28
uses: actions/setup-dotnet@v4
0 commit comments