Skip to content

Commit 0183228

Browse files
authored
Merge pull request #48 from statiolake/master
Use Personal Access Token instead of default Github token
2 parents 126ded2 + f06a9e0 commit 0183228

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/update.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Update
22

33
on:
44
schedule:
5-
# The scheduled jobs run only on `master`. Then we checkout `ja-all-enable`.
5+
# The scheduled jobs run only on `master`. Then we checkout `ja-all-enabled`.
66
# <https://github.community/t5/GitHub-Actions/Scheduled-builds-of-non-default-branch/td-p/32270>
7-
- cron: '0 0 * * *'
7+
- cron: "0 0 * * *"
88
push:
99
branches:
1010
- master
@@ -33,13 +33,13 @@ jobs:
3333
default: true
3434
profile: minimal
3535

36-
- name: '`cargo install --debug --bin cargo-add cargo-edit`'
36+
- name: "`cargo install --debug --bin cargo-add cargo-edit`"
3737
uses: actions-rs/cargo@v1
3838
with:
3939
command: install
4040
args: --debug --bin cargo-add cargo-edit
4141

42-
- name: '`cargo install --debug cargo-outdated`'
42+
- name: "`cargo install --debug cargo-outdated`"
4343
uses: actions-rs/cargo@v1
4444
with:
4545
command: install
@@ -86,17 +86,17 @@ jobs:
8686
print(f'::set-output name=body::{body}')
8787
shell: python3 {0}
8888

89-
- name: '`cargo update`'
89+
- name: "`cargo update`"
9090
uses: actions-rs/cargo@v1
9191
with:
9292
command: update
9393

9494
- name: Create Pull Request
9595
uses: peter-evans/create-pull-request@v2
9696
with:
97-
token: ${{ secrets.GITHUB_TOKEN }}
98-
commit-message: '[bot] Update the crates'
99-
title: '[bot] Update the crates'
97+
token: ${{ secrets.REPO_SCOPED_TOKEN }}
98+
commit-message: "[bot] Update the crates"
99+
title: "[bot] Update the crates"
100100
body: ${{ steps.upgrade.outputs.body }}
101101
branch: ja-all-enabled-update-the-crates
102102
base: ja-all-enabled

0 commit comments

Comments
 (0)