Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] Cancel fastcheck when PR is ready #7433

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
p
Signed-off-by: kevin <kevin@anyscale.com>
  • Loading branch information
khluu committed Aug 12, 2024
commit 92cc8e53e73d93eae1218a5d9ec53db2d0ba7d75
6 changes: 3 additions & 3 deletions .github/workflows/cancel_fastcheck_when_ready.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ on:

jobs:
cancel-buildkite-run:
if: github.event.label.name == 'invalid'
if: github.event.label.name == 'ready'
runs-on: ubuntu-latest
steps:
- name: Cancel Buildkite Run
- name: Cancel fastcheck run on Buildkite
env:
BUILDKITE_TOKEN: ${{ secrets.BUILDKITE_TOKEN }}
BUILDKITE_ORG: vllm
BUILDKITE_PIPELINE: fastcheck
run: |
echo "PR branch"
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" \
"https://api.buildkite.com/v2/organizations/$BUILDKITE_ORG/pipelines/$BUILDKITE_PIPELINE/builds?branch=$FULL_BRANCH&state[]=scheduled&state[]=running" \
| jq -r '.[0].number')
Expand Down
Loading