File tree Expand file tree Collapse file tree 1 file changed +14
-16
lines changed
Expand file tree Collapse file tree 1 file changed +14
-16
lines changed Original file line number Diff line number Diff line change 88jobs :
99
1010 run-only-on-main-branch :
11- name : Create GitHub Release
11+ name : Verify main branch
1212 runs-on : ubuntu-latest
13- needs : build-native
14- permissions :
15- contents : write
1613
17- steps :
18- - name : Checkout repository
19- uses : actions/checkout@v4
20- - name : Check if tag is on main
21- run : |
22- git fetch origin main
23- if git merge-base --is-ancestor $GITHUB_SHA origin/main; then
24- echo "Tag is on main"
25- else
26- echo "Tag is NOT on main, skipping"
27- exit 0
28- fi
14+ steps :
15+ - name : Checkout repository
16+ uses : actions/checkout@v4
17+
18+ - name : Check if tag is on main
19+ run : |
20+ git fetch origin main
21+ if git merge-base --is-ancestor $GITHUB_SHA origin/main; then
22+ echo "Tag is on main"
23+ else
24+ echo "Tag is NOT on main, skipping"
25+ exit 0
26+ fi
2927
3028 build-native :
3129 name : Build on ${{ matrix.os }}
You can’t perform that action at this time.
0 commit comments