Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
396a13e6
Unverified
Commit
396a13e6
authored
Aug 13, 2024
by
Yineng Zhang
Committed by
GitHub
Aug 13, 2024
Browse files
ci: add cancel pr workflow (#1070)
parent
65915f9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
.github/workflows/cancel-pr-workflow.yml
.github/workflows/cancel-pr-workflow.yml
+22
-0
No files found.
.github/workflows/cancel-pr-workflow.yml
0 → 100644
View file @
396a13e6
name
:
Cancel PR Workflows on Merge
on
:
pull_request
:
types
:
-
closed
permissions
:
actions
:
write
jobs
:
cancel
:
if
:
github.event.pull_request.merged ==
true
runs-on
:
ubuntu-latest
steps
:
-
name
:
Cancel Previous Runs
uses
:
styfle/cancel-workflow-action@0.12.1
with
:
workflow_id
:
all
access_token
:
${{ secrets.GITHUB_TOKEN }}
ignore_sha
:
true
pr_number
:
${{ github.event.pull_request.number }}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment