From bcfe223ada070e263597e478cd6cd6ecf740db2b Mon Sep 17 00:00:00 2001 From: statiolake Date: Fri, 10 Jan 2020 01:39:15 +0900 Subject: [PATCH 1/2] Fix typo --- .github/workflows/update.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index fc8f3bd..a767fac 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -2,9 +2,9 @@ name: Update on: schedule: - # The scheduled jobs run only on `master`. Then we checkout `ja-all-enable`. + # The scheduled jobs run only on `master`. Then we checkout `ja-all-enabled`. # - - cron: '0 0 * * *' + - cron: "0 0 * * *" push: branches: - master @@ -33,13 +33,13 @@ jobs: default: true profile: minimal - - name: '`cargo install --debug --bin cargo-add cargo-edit`' + - name: "`cargo install --debug --bin cargo-add cargo-edit`" uses: actions-rs/cargo@v1 with: command: install args: --debug --bin cargo-add cargo-edit - - name: '`cargo install --debug cargo-outdated`' + - name: "`cargo install --debug cargo-outdated`" uses: actions-rs/cargo@v1 with: command: install @@ -86,7 +86,7 @@ jobs: print(f'::set-output name=body::{body}') shell: python3 {0} - - name: '`cargo update`' + - name: "`cargo update`" uses: actions-rs/cargo@v1 with: command: update @@ -95,8 +95,8 @@ jobs: uses: peter-evans/create-pull-request@v2 with: token: ${{ secrets.GITHUB_TOKEN }} - commit-message: '[bot] Update the crates' - title: '[bot] Update the crates' + commit-message: "[bot] Update the crates" + title: "[bot] Update the crates" body: ${{ steps.upgrade.outputs.body }} branch: ja-all-enabled-update-the-crates base: ja-all-enabled From f06a9e07c0a9c2fed115dc8238ed2c9c46ac5c01 Mon Sep 17 00:00:00 2001 From: statiolake Date: Fri, 10 Jan 2020 01:41:13 +0900 Subject: [PATCH 2/2] Use Personal Access Token instead of Github token Default Github token does not trigger CI when bot creates a new PR. See for more details. --- .github/workflows/update.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index a767fac..4aca93d 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -94,7 +94,7 @@ jobs: - name: Create Pull Request uses: peter-evans/create-pull-request@v2 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.REPO_SCOPED_TOKEN }} commit-message: "[bot] Update the crates" title: "[bot] Update the crates" body: ${{ steps.upgrade.outputs.body }}