[CI:DOCS] Fix artifact action

Fix a bug where the check uploads section didn't actually mark the os/arch to be built.

Signed-off-by: Ashley Cui <acui@redhat.com>
This commit is contained in:
Ashley Cui
2024-04-22 14:35:56 -04:00
parent e7f0c1947e
commit c22eefb939

View File

@ -48,6 +48,10 @@ jobs:
echo "dryrun=${{ inputs.dryrun }}" >> $GITHUB_OUTPUT
fi
- name: Dry Run Status
run: |
echo "::notice::This workflow execution will be a dry-run: ${{ steps.actual_dryrun.outputs.dryrun }}"
- name: Check uploads
id: check
run: |
@ -61,10 +65,11 @@ jobs:
set -- $artifact # Convert the "tuple" into the param args $1 $2...
status=$(curl -s -o /dev/null -w "%{http_code}" "${URI}/${1:?}")
if [[ "$status" == "404" ]] ; then
echo "${1:?} will be built"
needsbuild=true
echo "${2:?}=true"
echo "${2:?}=true" >> $GITHUB_OUTPUT
else
echo "::warning::${artifact} already exists, skipping"
echo "::warning::${1:?} already exists, skipping"
fi
done