Skip to content

Commit

Permalink
Fix api calls for find-latest-ui logic
Browse files Browse the repository at this point in the history
  • Loading branch information
gerrod3 committed Nov 1, 2024
1 parent c31b64e commit 9c4ee43
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/actions/build_image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,14 @@ runs:
- name: Find latest ui version
if: inputs.latest_ui != 'false'
run: |
URL=$(http "https://api.github.com/repos/pulp/pulp-ui/releases" | jq -r '.assets[0].browser_download_url')
echo "Found UI url ${URL}"
echo "BUILD_UI_ARG=--build-arg PULP_UI_URL=${URL}" >> $GITHUB_ENV
echo "Requesting the latest pulp-ui release"
URL=$(http --verify=no GET https://api.github.com/repos/pulp/pulp-ui/releases/latest | jq -r '.assets[0].browser_download_url')
if [[ -n "${URL}" && ("${URL}" != "null") ]]; then
echo "Found UI url ${URL}"
echo "BUILD_UI_ARG=--build-arg PULP_UI_URL=${URL}" >> $GITHUB_ENV
else
echo "Failed to find the latest pulp-ui release"
fi
shell: bash

- name: Build images
Expand Down

0 comments on commit 9c4ee43

Please sign in to comment.