Skip to content

Commit

Permalink
add token at checkout step
Browse files Browse the repository at this point in the history
  • Loading branch information
epassaro committed Jun 3, 2021
1 parent 2bba59c commit 9f2c493
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.BOT_TOKEN }}

- name: Install github-changes
run: sudo npm install -g github-changes

- name: Update changelog
run: github-changes -o tardis-sn -r tardis --only-pulls --use-commit-body -f CHANGELOG.md -k ${{ secrets.GITHUB_TOKEN }}

- name: Commit files
- name: Configure bot user
run: |
git config --local user.email "tardis.sn.bot@gmail.com"
git config --local user.name "TARDIS Bot"
git add CHANGELOG.md
git commit -m "Update CHANGELOG.md [skip ci]"
git config --global user.email "tardis.sn.bot@gmail.com"
git config --global user.name "TARDIS Bot"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.BOT_TOKEN }} # Use BOT_TOKEN to push on write-protected branches
run: |
git add CHANGELOG.md
git commit -m "Update CHANGELOG.md [skip ci]"
git push

0 comments on commit 9f2c493

Please sign in to comment.