Skip to content

Commit

Permalink
Fix GitHub Actions spec for zip_studies (#2049)
Browse files Browse the repository at this point in the history
Co-authored-by: cbioportal import user <[email protected]>
  • Loading branch information
jamesqo and cbioportal import user authored Aug 2, 2024
1 parent 54423c6 commit fc4b313
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/zip_studies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
set["crdc/gdc/" parts[3]]++;
}
}
END { for (studypath in set) { print studypath } }'"
END { for (studypath in set) { print studypath } }')"
exit 0
id: unique_studies
- uses: actions/checkout@v2
Expand Down Expand Up @@ -60,14 +60,14 @@ jobs:
tar -cvf ${SAVED_GIT_REPO_FILENAME} .git > /dev/null
mkdir studies_to_upload
for study_path in ${{ steps.unique_studies.outputs.unique_study_paths_list }}; do
if [ ! -d "${changed_study}" ]; then
if [ ! -d "${study_path}" ]; then
continue
fi
changed_study=$(basename "$study_path")
echo "Pulling study: ${study_path}."
git lfs pull --include="${study_path}"
echo "Compressing this study: ${study_path}."
tar -czvf studies_to_upload/${changed_study}.tar.gz ${changed_study}
tar -czvf studies_to_upload/${changed_study}.tar.gz ${study_path}
echo "Copy file to S3: studies_to_upload/${changed_study}.tar.gz"
aws s3 cp --acl public-read studies_to_upload/${changed_study}.tar.gz s3://${AWS_S3_BUCKET}/
echo "Remove this directory: ${study_path}."
Expand Down

0 comments on commit fc4b313

Please sign in to comment.