Skip to content

Commit b77d2d0

Browse files
author
Evgeny Zakharov
committed
chore: fix release workflow N2
1 parent b07ea5a commit b77d2d0

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
branch: ${{ steps.branch-name.outputs.value }}
3434
branch-exists: ${{ steps.branch-exists.outputs.flag == '1' }}
3535

36-
sync-latest:
36+
sync-and-release:
3737
runs-on: ubuntu-latest
3838
needs: get-meta
3939
if: needs.get-meta.outputs.branch == 'release/latest'
@@ -47,13 +47,13 @@ jobs:
4747
uses: actions/checkout@v3
4848

4949
- name: Create branch
50-
if: ${{ !needs.get-meta.outputs.branch-exists }}
50+
if: ${{ needs.get-meta.outputs.branch-exists == 'false' }}
5151
run: |
5252
git checkout -b ${{ needs.get-meta.outputs.branch }}
5353
git push -u origin ${{ needs.get-meta.outputs.branch }}
5454
5555
- name: Checkout branch
56-
if: ${{ needs.get-meta.outputs.branch-exists }}
56+
if: ${{ needs.get-meta.outputs.branch-exists == 'true' }}
5757
run: git checkout ${{ needs.get-meta.outputs.branch }}
5858

5959
- name: Override branch using tag HEAD
@@ -81,6 +81,11 @@ jobs:
8181
runs-on: ubuntu-latest
8282
needs: get-meta
8383
steps:
84+
- name: Checkout to tag
85+
uses: actions/checkout@v3
86+
with:
87+
ref: ${{ github.event.release.tag_name }}
88+
8489
- uses: actions/setup-node@v1
8590
with:
8691
node-version: 16

0 commit comments

Comments
 (0)