|
1 | 1 | name: Update Dependencies |
2 | 2 |
|
3 | 3 | on: |
4 | | - # schedule: # Sets a schedule to trigger the workflow |
5 | | - # - cron: "0 8 * * *" # Every day at 08:00 AM UTC (see https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule) |
6 | | - workflow_dispatch: # Allows the workflow to be triggered manually via the GitHub interface |
| 4 | + schedule: |
| 5 | + - cron: "0 */6 * * *" # Check for updates every six hours |
| 6 | + workflow_dispatch: |
7 | 7 |
|
8 | 8 | jobs: |
9 | | - update_lean: |
| 9 | + bump: |
10 | 10 | runs-on: ubuntu-latest |
11 | 11 | permissions: |
12 | | - contents: write # Grants permission to push changes to the repository |
13 | | - issues: write # Grants permission to create or update issues |
14 | | - pull-requests: write # Grants permission to create or update pull requests |
| 12 | + contents: write |
| 13 | + pull-requests: write |
15 | 14 | steps: |
16 | | - - name: Checkout code |
17 | | - uses: actions/checkout@v6 |
18 | | - - name: Update project |
19 | | - uses: Seasawher/lean-update@main |
| 15 | + - uses: actions/checkout@v6 |
| 16 | + |
| 17 | + - name: Bump to latest mathlib |
| 18 | + id: bump |
| 19 | + uses: leanprover-community/downstream-reports/.github/actions/bump-to-latest@main |
| 20 | + |
| 21 | + - name: Open or update PR |
| 22 | + if: steps.bump.outputs.updated == 'true' |
| 23 | + uses: leanprover-community/downstream-reports/.github/actions/open-bump-pr@main |
20 | 24 | with: |
21 | | - on_update_succeeds: pr # Create a pull request if the update succeeds |
22 | | - on_update_fails: issue # Create an issue if the update fails |
| 25 | + title: ${{ steps.bump.outputs.pr-title }} |
| 26 | + message: ${{ steps.bump.outputs.bump-description }} |
| 27 | + commit-message: ${{ steps.bump.outputs.commit-message }} |
| 28 | + |
| 29 | + open-issue: |
| 30 | + runs-on: ubuntu-latest |
| 31 | + permissions: |
| 32 | + issues: write |
| 33 | + contents: write |
| 34 | + pull-requests: write |
| 35 | + steps: |
| 36 | + - uses: actions/checkout@v6 |
| 37 | + |
| 38 | + - name: Open or update incompatibility issue and PR |
| 39 | + uses: leanprover-community/downstream-reports/.github/actions/track-incompatibility@main |
0 commit comments