Do not generate invalid links in job summaries
This commit is contained in:
parent
bdc97d1046
commit
e3412617df
1 changed files with 10 additions and 5 deletions
|
@ -52,10 +52,15 @@ access_url="https://ci-artifacts.rust-lang.org/${deploy_dir}/$(ciCommit)"
|
||||||
# to make them easily accessible.
|
# to make them easily accessible.
|
||||||
if [ -n "${GITHUB_STEP_SUMMARY}" ]
|
if [ -n "${GITHUB_STEP_SUMMARY}" ]
|
||||||
then
|
then
|
||||||
echo "# CI artifacts" >> "${GITHUB_STEP_SUMMARY}"
|
archives=($(find "${upload_dir}" -maxdepth 1 -name "*.xz"))
|
||||||
|
|
||||||
for filename in "${upload_dir}"/*.xz; do
|
# Avoid generating an invalid "*.xz" file if there are no archives
|
||||||
filename=$(basename "${filename}")
|
if [ ${#archives[@]} -gt 0 ]; then
|
||||||
echo "- [${filename}](${access_url}/${filename})" >> "${GITHUB_STEP_SUMMARY}"
|
echo "# CI artifacts" >> "${GITHUB_STEP_SUMMARY}"
|
||||||
done
|
|
||||||
|
for filename in "${upload_dir}"/*.xz; do
|
||||||
|
filename=$(basename "${filename}")
|
||||||
|
echo "- [${filename}](${access_url}/${filename})" >> "${GITHUB_STEP_SUMMARY}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue