-
Notifications
You must be signed in to change notification settings - Fork 6
49 lines (40 loc) · 1.14 KB
/
weekly.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
41
42
43
44
45
46
47
48
49
name: Weekly Update
on:
schedule:
- cron: '0 8 * * 0'
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
upgrade:
name: Build on Ubuntu Latest (Stable)
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.PRIVATE_APP_KEY }}
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.app-token.outputs.token }}
- id: setup
name: Setup Toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Update Cargo.lock
run: cargo update --verbose
- name: Build
run: cargo build --release --verbose
- name: Push changes
continue-on-error: true
run: |
git config user.name ${{ secrets.GH_USER }}
git config user.email "${{ secrets.GH_MAIL }}"
git add Cargo.lock
git commit -m "Weekly Cargo.lock update"
git push