ci: update cancel workflow to include queued status in run cancellation

This commit is contained in:
chenhaoran 2025-03-13 11:11:37 +08:00
parent 86f4f6571d
commit 8c8b013565
1 changed files with 1 additions and 1 deletions

View File

@ -15,4 +15,4 @@ jobs:
run: |
echo "PR has been merged or closed, cancelling workflow..."
gh auth status
gh run list --repo ${{ github.repository }} --branch ${{ github.event.pull_request.head.ref }} --workflow "TDengine Test" --status in_progress --json databaseId --jq '.[].databaseId' | xargs -I {} gh run cancel --repo ${{ github.repository }} {}
gh run list --repo ${{ github.repository }} --branch ${{ github.event.pull_request.head.ref }} --workflow "TDengine Test" --status in_progress --status queued --json databaseId --jq '.[].databaseId' | xargs -I {} gh run cancel --repo ${{ github.repository }} {}