From ce3c123a982a81b748028f1b4327e82bad63612d Mon Sep 17 00:00:00 2001 From: Ines Gimeno Molina <142247121+ines-gimeno-molina@users.noreply.github.com> Date: Tue, 30 Apr 2024 16:23:32 +0100 Subject: [PATCH] Update pr-on-branch-push.yml --- .github/workflows/pr-on-branch-push.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-on-branch-push.yml b/.github/workflows/pr-on-branch-push.yml index 29c6205..31038cf 100644 --- a/.github/workflows/pr-on-branch-push.yml +++ b/.github/workflows/pr-on-branch-push.yml @@ -40,7 +40,9 @@ jobs: - name: Get PR number id: get_pr_number run: | - PR_NUMBER=$(gh pr view ${{ github.ref_name }} --jq '.number') + echo $(gh pr view ${{ github.ref_name }} --json number) + echo $(gh pr view ${{ github.ref_name }} --json number --jq '.number') + PR_NUMBER=$(gh pr view ${{ github.ref_name }} --json number --jq '.number') echo "PR Number: $PR_NUMBER" echo "::set-output name=pr_number::$PR_NUMBER" env: