Skip to content

Commit 8ae0ce1

Browse files
Merge pull request #746 from miredirex/ci/checkout-master
CI: added conditional step to checkout master on tag push
2 parents e7f91cc + fd17d63 commit 8ae0ce1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/windows-playable-build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ jobs:
3232
git submodule sync --recursive
3333
git submodule update --init --force --recursive --depth=1
3434
35+
- name: Checkout master on tag push
36+
if: github.ref_type == 'tag'
37+
# Checkout only if the tag was pushed to master
38+
run: (git rev-parse HEAD) -eq (git rev-parse origin/master) -and (git checkout master)
39+
3540
- name: Cache xmake dependencies
3641
uses: actions/cache@v4
3742
with:

0 commit comments

Comments
 (0)