Skip to content

Commit

Permalink
ci: use default branch from event (#819)
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Feb 8, 2024
1 parent bd7200c commit fd4ca43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Expand Up @@ -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 }}

0 comments on commit fd4ca43

Please sign in to comment.