Skip to content

Commit 8b7ed74

Browse files
committed
fix: ci: new_release_channel is undefined when default channel is published
1 parent 5aa8942 commit 8b7ed74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release-on-merge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ jobs:
3232
- name: Push updates to branch for major version
3333
if: |
3434
steps.semantic.outputs.new_release_published == 'true' &&
35-
steps.semantic.outputs.new_release_channel == 'undefined'
35+
steps.semantic.outputs.new_release_channel == null
3636
run: "git push https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:refs/heads/v${{steps.semantic.outputs.new_release_major_version}}"
3737
env:
3838
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3939
- name: Reset alpha branch
4040
if: |
4141
steps.semantic.outputs.new_release_published == 'true' &&
42-
steps.semantic.outputs.new_release_channel == 'undefined'
42+
steps.semantic.outputs.new_release_channel == null
4343
run: "git push --force https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:refs/heads/alpha"
4444
env:
4545
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)