Merge conflicts #104679
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Merge conflicts | |
| on: | |
| schedule: | |
| - cron: '*/15 * * * *' # run every 15 minutes | |
| workflow_dispatch: | |
| jobs: | |
| main: | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'leanprover-community/mathlib4' | |
| steps: | |
| - name: Generate app token | |
| id: app-token | |
| uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1 | |
| with: | |
| app-id: ${{ secrets.MATHLIB_MERGE_CONFLICTS_APP_ID }} | |
| private-key: ${{ secrets.MATHLIB_MERGE_CONFLICTS_PRIVATE_KEY }} | |
| - name: check if prs are dirty | |
| uses: eps1lon/actions-label-merge-conflict@1df065ebe6e3310545d4f4c4e862e43bdca146f0 # v3.0.3 | |
| with: | |
| dirtyLabel: "merge-conflict" | |
| commentOnDirty: "This pull request has conflicts, please merge `master` and resolve them." | |
| # The create-github-app-token README states that this token is masked and will not be logged accidentally. | |
| repoToken: ${{ steps.app-token.outputs.token }} |