splice-bot (workflow_run) #31965
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: splice-bot (workflow_run) | |
| on: | |
| workflow_run: | |
| workflows: ["splice-bot"] | |
| types: [completed] | |
| permissions: {} | |
| jobs: | |
| run-splice-bot: | |
| if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| steps: | |
| - name: Mint splicebot token | |
| id: token | |
| uses: leanprover-community/mathlib-ci/.github/actions/azure-create-github-app-token@3bb576208589a435eeaeac9b144a1b7c3e948760 | |
| with: | |
| app-id: ${{ secrets.MATHLIB_SPLICEBOT_APP_ID }} | |
| key-vault-name: ${{ vars.MATHLIB_AZ_KEY_VAULT_NAME }} | |
| key-name: mathlib-splicebot-app-pk | |
| azure-client-id: ${{ vars.GH_APP_AZURE_CLIENT_ID_SPLICEBOT }} | |
| azure-tenant-id: ${{ secrets.LPC_AZ_TENANT_ID }} | |
| owner: leanprover-community | |
| - name: Mint branch token | |
| id: branch-token | |
| uses: leanprover-community/mathlib-ci/.github/actions/azure-create-github-app-token@3bb576208589a435eeaeac9b144a1b7c3e948760 | |
| with: | |
| app-id: ${{ secrets.MATHLIB_COPY_SPLICEBOT_APP_ID }} | |
| key-vault-name: ${{ vars.MATHLIB_AZ_KEY_VAULT_NAME }} | |
| key-name: mathlib-copy-splicebot-app-pk | |
| azure-client-id: ${{ vars.GH_APP_AZURE_CLIENT_ID_SPLICEBOT }} | |
| azure-tenant-id: ${{ secrets.LPC_AZ_TENANT_ID }} | |
| owner: leanprover-community | |
| - name: Mint authz token | |
| id: authz-token | |
| uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 | |
| with: | |
| app-id: ${{ secrets.LPC_TEAM_CHECK_APP_ID }} | |
| private-key: ${{ secrets.LPC_TEAM_CHECK_PRIVATE_KEY }} | |
| owner: leanprover-community | |
| - name: Run splice bot action | |
| uses: leanprover-community/SpliceBot/.github/actions/splice-wf-run@d86d20efffbd18f839199fdd5ec126570f7eceda | |
| with: | |
| source_workflow: ${{ github.event.workflow_run.name }} | |
| push_to_fork: leanprover-community/mathlib4_copy | |
| # Title the split PR so it passes check_pr_titles.yaml: scope without | |
| # the Mathlib/ prefix or the .lean extension. | |
| pr_title: 'chore({file_scope}): automated extraction from #{pr_number}' | |
| scope_strip_prefix: 'Mathlib/' | |
| min_repo_permission: 'disabled' | |
| allow_pr_author: 'true' | |
| allowed_teams: | | |
| leanprover-community/mathlib-reviewers | |
| leanprover-community/mathlib-maintainers | |
| token: ${{ steps.token.outputs.token }} | |
| authz_token: ${{ steps.authz-token.outputs.token }} | |
| branch_token: ${{ steps.branch-token.outputs.token }} | |
| label_commands: ${{ vars.SPLICEBOT_LABEL_COMMANDS }} |