mirror of
https://github.com/containers/podman.git
synced 2025-05-17 23:26:08 +08:00
[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:
9
.github/workflows/release-artifacts.yml
vendored
9
.github/workflows/release-artifacts.yml
vendored
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user