-
-
Notifications
You must be signed in to change notification settings - Fork 7
40 lines (34 loc) · 1.11 KB
/
weekly-rust-cargo-update.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
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Weekly Rust Cargo update
on:
workflow_dispatch:
schedule:
# weekly "at 05:00 on Monday" (https://crontab.guru/#0_5_*_*_1)
- cron: '0 5 * * 1'
jobs:
weekly-cargo:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
manifest:
- 'src/abacus/Cargo.toml'
- 'src/rossum-dmv2-analyze/Cargo.toml'
- 'src/x/Cargo.toml'
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v4.1.1
# https://github.com/dtolnay/rust-toolchain
- uses: dtolnay/rust-toolchain@stable
# Cargo update
- run: cargo update --manifest-path ${{ matrix.manifest }} --color always
# https://github.com/peter-evans/create-pull-request
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6.0.1
with:
token: ${{ secrets.PAT }}
commit-message: 'Weekly Rust Cargo update (${{ matrix.manifest }})'
title: 'Weekly Rust Cargo update (${{ matrix.manifest }})'
delete-branch: true
branch-suffix: random
labels: |
dependencies