Skip to content

Use Personal Access Token instead of default Github token #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
# <https://github.community/t5/GitHub-Actions/Scheduled-builds-of-non-default-branch/td-p/32270>
- cron: '0 0 * * *'
- cron: "0 0 * * *"
push:
branches:
- master
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -86,17 +86,17 @@ 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

- name: Create Pull Request
uses: peter-evans/create-pull-request@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: '[bot] Update the crates'
title: '[bot] Update the crates'
token: ${{ secrets.REPO_SCOPED_TOKEN }}
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