Skip to content

Commit

Permalink
replace fetcher
Browse files Browse the repository at this point in the history
  • Loading branch information
yangw-dev committed Feb 13, 2025
1 parent 74bf0d4 commit f0ce4ce
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/linux_job_v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -298,16 +298,23 @@ jobs:
run: |
# Only do these steps if we actually want to upload an artifact
if [[ -n "${UPLOAD_ARTIFACT_NAME}" ]]; then
files_found=false
# If the default execution path is followed then we should get a wheel in the dist/ folder
# attempt to just grab whatever is in there and scoop it all up
if find "dist/" -name "*.whl" >/dev/null 2>/dev/null; then
mv -v dist/*.whl "${RUNNER_ARTIFACT_DIR}/"
files_found=true
fi
if [[ -d "artifacts-to-be-uploaded" ]]; then
mv -v artifacts-to-be-uploaded/* "${RUNNER_ARTIFACT_DIR}/"
if [ "$(ls -A artifacts-to-be-uploaded)" ]; then
mv -v artifacts-to-be-uploaded/* "${RUNNER_ARTIFACT_DIR}/"
files_found=true
fi
fi
# Set to fail upload step if there are no files for upload and expected files for upload
echo 'if-no-files-found=error' >> "${GITHUB_OUTPUT}"
if !files_found; then
echo 'if-no-files-found=error' >> "${GITHUB_OUTPUT}"
fi
fi
upload_docs=0
Expand Down

0 comments on commit f0ce4ce

Please sign in to comment.