generated from Sage-Bionetworks/data-models
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #134 from adknowledgeportal/schematic-221-upload-m…
…anifests-to-synapse-action [Schematic-221] Upload Metadata Templates to Synapse from Github Action
- Loading branch information
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
# upload metadata templates to synapse | ||
# if running locally set SYNAPSE_AUTH_TOKEN in your environment | ||
|
||
set -e | ||
shopt -s extglob | ||
|
||
echo Uploading manifests to "${SYNAPSE_UPLOAD_FOLDER_ID}" | ||
|
||
MANIFESTS=("$PWD"/*.@(xlsx|xls)) | ||
|
||
for MANIFEST in ${MANIFESTS[@]}; | ||
do | ||
echo "Uploading $MANIFEST" | ||
synapse store --parentId "${SYNAPSE_UPLOAD_FOLDER_ID}" --noForceVersion "$MANIFEST" | ||
done | ||
|
||
echo "✓ Done!" |