forked from release-plz/release-plz
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (25 loc) · 939 Bytes
/
cargo-assist.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Cargo Assist
on:
push:
jobs:
cargo-assist:
name: Cargo assist
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
# use CARGO_ASSIST_TOKEN if available.
# In forks it's not available, so use the default GITHUB_TOKEN.
token: ${{ secrets.CARGO_ASSIST_TOKEN || secrets.GITHUB_TOKEN }}
# Persist credentials to allow cargo-assist to git commit.
# `true` is the default value.
persist-credentials: true
- name: Install Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@97db979bf844c838b06022f305ca480d01b4d5fe
- name: Cargo assist
uses: MarcoIeni/cargo-assist@dcc6e09df20675c6351c5b34f94dac66ae29a9ea # v0.1.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}