diff --git a/.github/workflows/netlify.yaml b/.github/workflows/netlify.yaml index 8473eee3..1e2a23ca 100644 --- a/.github/workflows/netlify.yaml +++ b/.github/workflows/netlify.yaml @@ -29,7 +29,7 @@ jobs: head_branch='${{github.event.workflow_run.head_repository.owner.login}}:${{github.event.workflow_run.head_branch}}' echo "head branch: $head_branch" pr_number=$(curl -H 'Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \ - 'https://api.github.com/repos/${{ github.repository }}/pulls?head=$head_branch' | + "https://api.github.com/repos/${{ github.repository }}/pulls?head=$head_branch" | jq -r '.[] | .number') echo "PR number: $pr_number" echo "::set-output name=prnumber::$pr_number"