ci: use default branch from event (#819)

This commit is contained in:
Michael Kriese authored and GitHub committed 2024-02-08 13:06:50 +00:00
1 parent bd7200cde8
commit fd4ca43dc2
1 file changed
+2 -2
+2 -2
View File
@@ -147,13 +147,13 @@ jobs:
- name: Push release branch
run: git push origin release:release
if: ${{github.ref == 'refs/heads/main'}}
if: ${{ github.ref_name == github.event.repository.default_branch }}
- name: Release
run: |
# override for semantic-release
export GITHUB_REF=refs/heads/release GITHUB_SHA=${{ steps.merge.outputs.commit }}
yarn release
if: ${{github.ref == 'refs/heads/main'}}
if: ${{ github.ref_name == github.event.repository.default_branch }}
env:
GITHUB_TOKEN: ${{ github.token }}