From b8b9339db914634792bcba7578d4549d4efab53f Mon Sep 17 00:00:00 2001 From: Eric Nantz Date: Tue, 2 Apr 2024 19:10:49 +0000 Subject: [PATCH] fix missing negation op in bash script --- .github/scripts/copy-ectd-bundle.sh | 2 +- .github/workflows/publish-ectd-bundle.yaml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/scripts/copy-ectd-bundle.sh b/.github/scripts/copy-ectd-bundle.sh index 7b201fc..c2d4104 100644 --- a/.github/scripts/copy-ectd-bundle.sh +++ b/.github/scripts/copy-ectd-bundle.sh @@ -13,7 +13,7 @@ ECTD_BUNDLE_FILE=r4app.zip if [ -f "${ECTD_BUNDLE_DIR}/${ECTD_BUNDLE_FILE}" ]; then echo "Copying ${ECTD_BUNDLE_DIR}/${ECTD_BUNDLE_FILE}" - if [ -f "$DESTINATION_DIR" ]; then + if [ ! -f "$DESTINATION_DIR" ]; then echo "Create new directory ${DESTINATION_DIR}" mkdir -p "${DESTINATION_DIR}" fi diff --git a/.github/workflows/publish-ectd-bundle.yaml b/.github/workflows/publish-ectd-bundle.yaml index 6b2a635..39a45f5 100644 --- a/.github/workflows/publish-ectd-bundle.yaml +++ b/.github/workflows/publish-ectd-bundle.yaml @@ -47,11 +47,12 @@ jobs: - name: Setup tmate session uses: mxschmitt/action-tmate@v3 + if: ${{ false }} - name: Copy ECTD bundle run: bash ./.github/scripts/copy-ectd-bundle.sh env: - DESTINATION_DIR: ./submissions-pilot4-webR-to-fda/m5/datasets/rconsortiumpilot4webR/analysis/adam/programs + DESTINATION_DIR: submissions-pilot4-webR-to-fda/m5/datasets/rconsortiumpilot4/analysis/adam/programs - name: Push ECTD bundle run: bash ./.github/scripts/push-ectd-bundle.sh