Skip to content

Commit e53c7ff

Browse files
committed
ci: Move release check up in the step chain
1 parent c8895fe commit e53c7ff

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ jobs:
2121
@semantic-release/git
2222
branch: main
2323
env:
24-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
25-
- uses: actions/checkout@v3
24+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
25+
- name: Post Release Checkout
26+
uses: actions/checkout@v3
27+
if: steps.semantic.outputs.new_release_published == 'true'
2628
with:
2729
ref: ${{ steps.semantic.outputs.new_release_version }}
2830
- name: Split UPM Branch
@@ -41,7 +43,6 @@ jobs:
4143
env:
4244
PKG_ROOT: Packages/mygamedevtools-scene-loader
4345
- name: Create UPM Tag
44-
if: steps.semantic.outputs.new_release_published == 'true'
4546
run: |
4647
git tag $TAG upm
4748
git push origin --tags

0 commit comments

Comments
 (0)