Skip to content

Commit 7162c3b

Browse files
Fix control
1 parent cfcc647 commit 7162c3b

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

.github/workflows/create-github-release.yaml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,22 @@ on:
88
jobs:
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 }}

0 commit comments

Comments
 (0)