From abf607951e0cfba9e83798f439cde62366cb0297 Mon Sep 17 00:00:00 2001 From: Ines Gimeno Molina <142247121+ines-gimeno-molina@users.noreply.github.com> Date: Tue, 30 Apr 2024 15:57:50 +0100 Subject: [PATCH] Update pr-on-branch-push.yml --- .github/workflows/pr-on-branch-push.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-on-branch-push.yml b/.github/workflows/pr-on-branch-push.yml index 04b91a5..46c98fa 100644 --- a/.github/workflows/pr-on-branch-push.yml +++ b/.github/workflows/pr-on-branch-push.yml @@ -40,12 +40,12 @@ jobs: - name: Get linked issue number to PR id: get_issue_number run: | - ISSUE_NUMBER=$(jq --raw-output .issue.url <<< "$(curl -s -H "Authorization: token $GITHUB_TOKEN" ${{ github.event.pull_request.issue_url }})") + ISSUE_URL=$(jq --raw-output '.issue.url' <<< "${{ github.event.pull_request }}") + ISSUE_NUMBER=$(curl -sSL -H "Authorization: token $GITHUB_TOKEN" $ISSUE_URL | jq --raw-output '.number') echo "::set-output name=issue_number::$ISSUE_NUMBER" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Copy labels from linked issues if: ${{ steps.get_issue_number.outputs.issue_number }} uses: michalvankodev/copy-issue-labels@v1.3.0