Skip to content

Commit fd17d63

Browse files
committed
Add conditional step to checkout master on tag push
1 parent e7f91cc commit fd17d63

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)