From 030400b9058449885d52e2e8fd45a83e9c20e791 Mon Sep 17 00:00:00 2001 From: Huweicai Date: Wed, 31 Jul 2024 15:26:28 +0800 Subject: [PATCH] feat: update github workflow --- .github/workflows/approve-check.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/approve-check.yaml b/.github/workflows/approve-check.yaml index 164063a..5aa8030 100644 --- a/.github/workflows/approve-check.yaml +++ b/.github/workflows/approve-check.yaml @@ -14,8 +14,10 @@ jobs: - name: Check PR labels id: check_labels + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PR_NUMBER: ${{ github.event.pull_request.number }} run: | - PR_NUMBER=$(echo "${{ github.event.pull_request.number }}") echo "Checking labels for PR #$PR_NUMBER" # Get the labels on the PR @@ -41,4 +43,4 @@ jobs: - name: Set output if labels are present if: success() - run: echo "All required labels are present." + run: echo "All required labels are present." \ No newline at end of file