Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
branch: ${{ steps.branch-name.outputs.value }}
branch-exists: ${{ steps.branch-exists.outputs.flag == '1' }}

sync-latest:
sync-and-release:
runs-on: ubuntu-latest
needs: get-meta
if: needs.get-meta.outputs.branch == 'release/latest'
Expand All @@ -47,13 +47,13 @@ jobs:
uses: actions/checkout@v3

- name: Create branch
if: ${{ !needs.get-meta.outputs.branch-exists }}
if: ${{ needs.get-meta.outputs.branch-exists == 'false' }}
run: |
git checkout -b ${{ needs.get-meta.outputs.branch }}
git push -u origin ${{ needs.get-meta.outputs.branch }}

- name: Checkout branch
if: ${{ needs.get-meta.outputs.branch-exists }}
if: ${{ needs.get-meta.outputs.branch-exists == 'true' }}
run: git checkout ${{ needs.get-meta.outputs.branch }}

- name: Override branch using tag HEAD
Expand Down Expand Up @@ -81,6 +81,11 @@ jobs:
runs-on: ubuntu-latest
needs: get-meta
steps:
- name: Checkout to tag
uses: actions/checkout@v3
with:
ref: ${{ github.event.release.tag_name }}

- uses: actions/setup-node@v1
with:
node-version: 16
Expand Down