-
Notifications
You must be signed in to change notification settings - Fork 25
37 lines (30 loc) · 1.11 KB
/
upgrade_examples.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
name: Upgrade examples
# smoelius: Every Saturday at 3:00 UTC (Friday at 22:00 EST), create a PR to update the example
# libraries to the latest version of `clippy_utils`.
on:
schedule:
- cron: 0 3 * * 6
workflow_dispatch:
jobs:
upgrade:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs
# https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#push-using-ssh-deploy-keys
ssh-key: ${{ secrets.SSH_KEY }}
- name: Install dylint-link
run: cargo install --path ./dylint-link --force
- name: Upgrade examples
run: |
scripts/upgrade_examples.sh
git diff --name-only
- name: Create pull request
uses: peter-evans/create-pull-request@v7
with:
title: Upgrade examples
branch: upgrade-examples
branch-suffix: random
commit-message: Upgrade examples
token: ${{ secrets.REPO_TOKEN }}