mirror of
https://github.com/renovatebot/github-action.git
synced 2025-12-15 16:32:36 +00:00
ci: use default branch from event (#819)
This commit is contained in:
parent
bd7200cde8
commit
fd4ca43dc2
1 changed files with 2 additions and 2 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
|
@ -147,13 +147,13 @@ jobs:
|
||||||
|
|
||||||
- name: Push release branch
|
- name: Push release branch
|
||||||
run: git push origin release:release
|
run: git push origin release:release
|
||||||
if: ${{github.ref == 'refs/heads/main'}}
|
if: ${{ github.ref_name == github.event.repository.default_branch }}
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
run: |
|
run: |
|
||||||
# override for semantic-release
|
# override for semantic-release
|
||||||
export GITHUB_REF=refs/heads/release GITHUB_SHA=${{ steps.merge.outputs.commit }}
|
export GITHUB_REF=refs/heads/release GITHUB_SHA=${{ steps.merge.outputs.commit }}
|
||||||
yarn release
|
yarn release
|
||||||
if: ${{github.ref == 'refs/heads/main'}}
|
if: ${{ github.ref_name == github.event.repository.default_branch }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue