Skip to content

Dependent Issues #108850

Dependent Issues

Dependent Issues #108850

name: Dependent Issues
on:
schedule:
- cron: '*/15 * * * *' # run every 15 minutes
workflow_dispatch:
jobs:
cancel:
name: 'Cancel Previous Runs (dependent issues)'
runs-on: ubuntu-latest
if: github.repository == 'leanprover-community/mathlib4'
# timeout-minutes: 3
steps:
- uses: styfle/cancel-workflow-action@d07a454dad7609a92316b57b23c9ccfd4f59af66 # 0.13.1
with:
all_but_latest: true
access_token: ${{ github.token }}
check:
runs-on: ubuntu-latest
if: github.repository == 'leanprover-community/mathlib4'
permissions:
id-token: write
steps:
- name: Generate app token
id: app-token
uses: leanprover-community/mathlib-ci/.github/actions/azure-create-github-app-token@3bb576208589a435eeaeac9b144a1b7c3e948760
with:
app-id: ${{ secrets.MATHLIB_DEPENDENT_ISSUES_APP_ID }}
key-vault-name: ${{ vars.MATHLIB_AZ_KEY_VAULT_NAME }}
key-name: mathlib-dependent-issues-app-pk
azure-client-id: ${{ vars.GH_APP_AZURE_CLIENT_ID_LABEL_BOTS }}
azure-tenant-id: ${{ secrets.LPC_AZ_TENANT_ID }}
- uses: z0al/dependent-issues@75d554cd9494b6e1766bc9d08a81c26444ad5c5a
env:
# (Required) The token to use to make API calls to GitHub.
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
with:
# (Optional) The label to use to mark dependent issues
label: blocked-by-other-PR
# (Optional) Enable checking for dependencies in issues. Enable by
# setting the value to "on". Default "off"
check_issues: off
# (Optional) A comma-separated list of keywords. Default
# "depends on, blocked by"
keywords: "- \\[ \\] depends on:,- \\[x\\] depends on:"