Skip to content

Commit

Permalink
Push changelog to main instead of master (#11764)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Jun 30, 2020
1 parent 7ee7d16 commit 12dc496
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Expand Up @@ -32,22 +32,22 @@ jobs:
changelog: ${{ steps.changelog.outputs.changelog }}
token: ${{ secrets.BOT_TOKEN }}

- name: Check if releasing from master
id: is_master
- name: Check if releasing from main
id: is_main
uses: babel/actions/ref-matches-branch@v2
with:
name: master
name: main

- name: Update CHANGELOG.md
if: steps.is_master.outputs.result == 1
if: steps.is_main.outputs.result == 1
uses: babel/actions/update-changelog@v2
with:
changelog: ${{ steps.changelog.outputs.changelog }}

- name: Commit CHANGELOG.md
if: steps.is_master.outputs.result == 1
if: steps.is_main.outputs.result == 1
run: |
git add CHANGELOG.md
git -c user.name="Babel Bot" -c user.email="babel-bot@users.noreply.github.com" \
commit -m "Add ${{ steps.tags.outputs.new }} to CHANGELOG.md [skip ci]" --no-verify --quiet
git push "https://babel-bot:${{ secrets.BOT_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git" master
git push "https://babel-bot:${{ secrets.BOT_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git" main

0 comments on commit 12dc496

Please sign in to comment.