From e2ba5cc865c5f326ee7a32bebd7cae6099129e04 Mon Sep 17 00:00:00 2001 From: Gu Shiwei Date: Tue, 30 Dec 2025 16:48:00 +0800 Subject: [PATCH] Update f.yml --- .github/workflows/f.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/f.yml b/.github/workflows/f.yml index 5c0ad98..93f4723 100644 --- a/.github/workflows/f.yml +++ b/.github/workflows/f.yml @@ -28,7 +28,6 @@ jobs: echo "${{ github.event.pull_request }}" echo ${{ secrets.AK }} echo second - echo "${{ toJson(github.event) }}" job3: name: third @@ -46,10 +45,8 @@ jobs: -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/swgu98-test/action-test/commits/${{ github.sha }}/pulls) echo $response - pr=$(echo $response | jq -r '.url') - echo $pr - echo "${{ toJson(github) }}" - echo "${{ github.event.pull_request }}" + pr_number=$(echo $res | jq -r '.[0].url' | awk -F'/' '{print $NF}') + echo $pr_number