From 9f2c49320af6e6c4ab0471b1e913f78c04c2c77c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ezequiel=20P=C3=A1ssaro?= Date: Thu, 3 Jun 2021 12:56:51 -0300 Subject: [PATCH] add token at checkout step --- .github/workflows/update-changelog.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/update-changelog.yml b/.github/workflows/update-changelog.yml index fb3c04a69b0..0c42a404768 100644 --- a/.github/workflows/update-changelog.yml +++ b/.github/workflows/update-changelog.yml @@ -18,6 +18,7 @@ jobs: - uses: actions/checkout@v2 with: fetch-depth: 0 + token: ${{ secrets.BOT_TOKEN }} - name: Install github-changes run: sudo npm install -g github-changes @@ -25,14 +26,13 @@ jobs: - 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