nealrichardson commented on code in PR #13266:
URL: https://github.com/apache/arrow/pull/13266#discussion_r889123890
##########
.github/workflows/r_nightly.yml:
##########
@@ -65,54 +68,58 @@ jobs:
fi
echo $PREFIX
- archery crossbow download-artifacts -f r-nightly-packages -t
binaries --skip-pattern-validation $PREFIX
+ archery crossbow download-artifacts -f r-nightly-packages -t
binaries $PREFIX
+
+ if [ -n "$(ls -A binaries/*/*/)" ]; then
+ echo "Found files!"
+ echo "GOT_FILES=true" >> $GITHUB_ENV
+ else
+ echo "No files found. Stopping upload."
+ echo "GOT_FILES=false" >> $GITHUB_ENV
+ fi
- name: Build Repository
+ if: env.GOT_FILES == 'true'
shell: Rscript {0}
Review Comment:
Up to you. I think this one is long enough to factor out, but you're going
to be the one maintaining it, so if you prefer it this way, it's fine
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]