Skip to content

Commit 57ff07f

Browse files
[CONFIG] YOLO api fix (- WIP PR #454 -)
Changes in file .github/workflows/CI-BUILD.yml: * changed gh pr call to use gh api call
1 parent 02a16cd commit 57ff07f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/CI-BUILD.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)