2021-08-15 23:07:27 +08:00
|
|
|
name: Cancel old pull request workflows
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_run:
|
|
|
|
workflows: ["PR build check"]
|
|
|
|
types:
|
|
|
|
- requested
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
cancel:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-07-03 10:53:03 +08:00
|
|
|
- uses: styfle/cancel-workflow-action@0.10.0
|
2021-08-15 23:07:27 +08:00
|
|
|
with:
|
2021-12-17 23:47:55 +08:00
|
|
|
all_but_latest: true
|
2021-08-15 23:07:27 +08:00
|
|
|
workflow_id: ${{ github.event.workflow.id }}
|