ci: cancel previous build (#2794)

This commit is contained in:
Alex Yang
2023-06-30 15:39:27 +08:00
committed by GitHub
parent 3c93f4162d
commit 68c4fccf98
2 changed files with 17 additions and 4 deletions

17
.github/workflows/cancel.yml vendored Normal file
View File

@@ -0,0 +1,17 @@
name: Cancel
on:
pull_request_target:
types:
- edited
- synchronize
jobs:
cancel:
name: 'Cancel Previous Runs'
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- uses: styfle/cancel-workflow-action@0.11.0
with:
workflow_id: 44038251
access_token: ${{ github.token }}