Skip to content

Commit

Permalink
remove uneccessary gh actions and setup folders for work
Browse files Browse the repository at this point in the history
  • Loading branch information
zaro0508 committed Jan 5, 2024
1 parent ffe5940 commit dd1a2b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: BSFishy/pip-action@v1
with:
packages: |
synapseclient[pandas,pysftp]
- name: Setup mongo tools - mongo-tools and mongo-shell
uses: boly38/action-mongo-tools@stable

This comment has been minimized.

Copy link
@xschildw

xschildw Jan 5, 2024

Do we always have these on the runner?

This comment has been minimized.

Copy link
@zaro0508

zaro0508 Jan 5, 2024

Author Member

yes

- name: Import Synapse Data
run: ./import-data.sh $BRANCH $SYNAPSE_USERNAME $SYNAPSE_PASSWORD $DB_HOST $DB_USER $DB_PASS
env:
Expand Down
6 changes: 3 additions & 3 deletions import-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ DB_USER=$5
DB_PASS=$6

CURRENT_DIR=$(pwd)
PARENT_DIR="$(dirname "$CURRENT_DIR")"
TMP_DIR=/tmp
WORKING_DIR=$TMP_DIR/work
WORKING_DIR=$CURRENT_DIR
DATA_DIR=$WORKING_DIR/data
TEAM_IMAGES_DIR=$DATA_DIR/team_images

mkdir -p $TEAM_IMAGES_DIR

# Version key/value should be on his own line
DATA_VERSION=$(cat $WORKING_DIR/data-manifest.json | grep data-version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]')
DATA_MANIFEST_ID=$(cat $WORKING_DIR/data-manifest.json | grep data-manifest-id | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]')
Expand Down

0 comments on commit dd1a2b5

Please sign in to comment.