File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -325,13 +325,13 @@ jobs:
325325 if [[ "${{ github.event_name }}" == "pull_request" ]]; then
326326 printf "%s\n" "build_pr_number=${{ github.event.pull_request.number }}" >> $GITHUB_OUTPUT
327327 else
328- PRS_LIST=$(gh pr list --state open --head "${{ github.repository }}:${{ github.ref_name }}" --json number --jq '.[].number')
328+ PRS_LIST=$(gh api --url "${{ github.api_url }}/repos/reactive-firewall-org/multicast/pulls?state=open&head=reactive-firewall-org :${{ github.ref_name }}" --jq '.[].number')
329329 # Determine the highest pull request number or set to null
330330 if [[ -n "${PRS_LIST}" ]]; then
331331 highest_pr_number=$(printf "%s\n" "$PRS_LIST" | sort -n | tail -n 1)
332- echo "build_pr_number=$highest_pr_number" >> $GITHUB_OUTPUT
332+ printf "%s\n" "build_pr_number=$highest_pr_number" >> $GITHUB_OUTPUT
333333 else
334- echo "build_pr_number=null" >> $GITHUB_OUTPUT
334+ printf "%s\n" "build_pr_number=null" >> $GITHUB_OUTPUT
335335 fi
336336 fi
337337 printf "%s\n" "build_environment=${ENVIRONMENT}" >> "$GITHUB_OUTPUT"
You can’t perform that action at this time.
0 commit comments