From dfe7a94acddeac0c1a2b248948e87fda4dfcce4a Mon Sep 17 00:00:00 2001 From: William Harrison <87287585+wdhdev@users.noreply.github.com> Date: Thu, 6 Mar 2025 20:01:20 +0800 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ee78b129..c9d669ede 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,6 +31,12 @@ jobs: if: github.event_name == 'pull_request' run: echo "PR_AUTHOR=${{ github.event.pull_request.user.login }}" >> $GITHUB_ENV + - name: Get PR labels + if: github.event_name == 'pull_request' + run: | + LABELS=$(jq -c '[.pull_request.labels[].name]' <<< '${{ toJson(github.event) }}') + echo "PR_LABELS=$LABELS" >> $GITHUB_ENV + - name: Get changed files if: github.event_name == 'pull_request' run: |