Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
1137f343
Unverified
Commit
1137f343
authored
Aug 12, 2024
by
Kevin H. Luu
Committed by
GitHub
Aug 12, 2024
Browse files
[ci] Cancel fastcheck when PR is ready (#7433)
Signed-off-by:
kevin
<
kevin@anyscale.com
>
parent
9b3e2edd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
.github/workflows/cancel_fastcheck_when_ready.yml
.github/workflows/cancel_fastcheck_when_ready.yml
+3
-3
No files found.
.github/workflows/cancel_fastcheck_when_ready.yml
View file @
1137f343
...
@@ -6,17 +6,17 @@ on:
...
@@ -6,17 +6,17 @@ on:
jobs
:
jobs
:
cancel-buildkite-run
:
cancel-buildkite-run
:
if
:
github.event.label.name == '
invalid
'
if
:
github.event.label.name == '
ready
'
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
steps
:
steps
:
-
name
:
Cancel Buildkite
Run
-
name
:
Cancel
fastcheck run on
Buildkite
env
:
env
:
BUILDKITE_TOKEN
:
${{ secrets.BUILDKITE_TOKEN }}
BUILDKITE_TOKEN
:
${{ secrets.BUILDKITE_TOKEN }}
BUILDKITE_ORG
:
vllm
BUILDKITE_ORG
:
vllm
BUILDKITE_PIPELINE
:
fastcheck
BUILDKITE_PIPELINE
:
fastcheck
run
:
|
run
:
|
echo "PR branch"
FULL_BRANCH=${{ github.event.pull_request.head.repo.owner.login }}:${{ github.event.pull_request.head.ref }}
FULL_BRANCH=${{ github.event.pull_request.head.repo.owner.login }}:${{ github.event.pull_request.head.ref }}
echo "PR branch: $FULL_BRANCH"
LATEST_BUILD_NUMBER=$(curl -H "Authorization: Bearer $BUILDKITE_TOKEN" \
LATEST_BUILD_NUMBER=$(curl -H "Authorization: Bearer $BUILDKITE_TOKEN" \
"https://api.buildkite.com/v2/organizations/$BUILDKITE_ORG/pipelines/$BUILDKITE_PIPELINE/builds?branch=$FULL_BRANCH&state[]=scheduled&state[]=running" \
"https://api.buildkite.com/v2/organizations/$BUILDKITE_ORG/pipelines/$BUILDKITE_PIPELINE/builds?branch=$FULL_BRANCH&state[]=scheduled&state[]=running" \
| jq -r '.[0].number')
| jq -r '.[0].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