Skip to content

Commit fd4ca43

Browse files
authored
ci: use default branch from event (#819)
1 parent bd7200c commit fd4ca43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,13 @@ jobs:
147147

148148
- name: Push release branch
149149
run: git push origin release:release
150-
if: ${{github.ref == 'refs/heads/main'}}
150+
if: ${{ github.ref_name == github.event.repository.default_branch }}
151151

152152
- name: Release
153153
run: |
154154
# override for semantic-release
155155
export GITHUB_REF=refs/heads/release GITHUB_SHA=${{ steps.merge.outputs.commit }}
156156
yarn release
157-
if: ${{github.ref == 'refs/heads/main'}}
157+
if: ${{ github.ref_name == github.event.repository.default_branch }}
158158
env:
159159
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy