Skip to content

Upgrade examples

Upgrade examples #188

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:
update:
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: 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 }}