-
Notifications
You must be signed in to change notification settings - Fork 50
36 lines (33 loc) · 1.34 KB
/
periodic-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
name: periodic-cargo-update
on:
workflow_dispatch: # Allow triggering through the UI
schedule:
- cron: '0 8 * * *' # Every day at 8am
jobs:
cargo-update:
runs-on: ubuntu-latest
container:
image: rust:1.82
steps:
- uses: actions/checkout@v4
# Note: `cargo update --workspace` doesn't seem to have any effect.
- run: cargo update
working-directory: wasm-node/rust
- run: cargo update
working-directory: full-node
- uses: peter-evans/create-pull-request@v7
with:
# We use a custom secret (rather than the default GITHUB_TOKEN) so that opening the pull
# request triggers other actions such as the CI checks. GitHub prevents actions that use
# GITHUB_TOKEN from triggering further actions, to avoid recursive actions.
token: ${{ secrets.GH_TOKEN }}
branch: cargo-update
base: main
title: Periodic `cargo update`
body: >
This automatic pull request runs `cargo update` on the repository.
Note that merging this pull request will invalidate the build cache of the GitHub Actions
and thus slow down the continuous integration. While this pull request is opened and
updated every day, please consider *not* merging it every day.
commit-message: Periodic `cargo update`
delete-branch: true