ci: update authentication method in cancel workflow to check status

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

View File

@ -14,5 +14,5 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "PR has been merged or closed, cancelling workflow..."
gh auth login --with-token $GH_TOKEN
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 }} {}