From 840f6c2ed5de1eeab8e5bb8a933875579f3cb4cc Mon Sep 17 00:00:00 2001 From: William Harrison <87287585+wdhdev@users.noreply.github.com> Date: Thu, 6 Mar 2025 20:26:10 +0800 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c37cb072a..bd95620db 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,7 +37,7 @@ jobs: - name: Get PR labels if: github.event_name == 'pull_request' run: | - LABELS=$(jq -c '[.pull_request.labels[].name]' <<< '${{ toJson(github.event) }}') + LABELS=$(gh api --jq '[.labels[].name]' /repos/{owner}/{repo}/pulls/${{ github.event.number }}) echo "PR_LABELS=$LABELS" >> $GITHUB_ENV - name: Get changed files