Fix the command-line arguments for tar compress

Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
This commit is contained in:
Yusuke Endoh 2024-06-06 18:02:16 +09:00
parent 37e2063b81
commit 9ee6b944bf

View File

@ -153,8 +153,9 @@ jobs:
CORES_TAR_GZ="cores-${{ github.run_id }}-${{ steps.job_id.outputs.result }}.tar.gz"
echo "test: $CORES_TAR_GZ"
if [ -n "$(ls /cores)" ]; then
tar czf /cores "$CORES_TAR_GZ"
tar czf "$CORES_TAR_GZ" /cores
aws s3 cp "$CORES_TAR_GZ" "s3://ruby-core-files/$CORES_TAR_GZ"
rm "$CORES_TAR_GZ"
fi
env:
AWS_ACCESS_KEY_ID: ${{ secrets.RUBY_CORE_FILES_AWS_ACCESS_KEY_ID }}