From b4e3f361b21dab5300d5f58be5adf668864d0c7b Mon Sep 17 00:00:00 2001 From: Eno Akpan Date: Wed, 15 Nov 2023 11:20:39 -0500 Subject: [PATCH] Update firecloud-orch swat --- .../sam-build-tag-publish-and-run-tests.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sam-build-tag-publish-and-run-tests.yaml b/.github/workflows/sam-build-tag-publish-and-run-tests.yaml index a0cbab46f..a10a0e23a 100644 --- a/.github/workflows/sam-build-tag-publish-and-run-tests.yaml +++ b/.github/workflows/sam-build-tag-publish-and-run-tests.yaml @@ -226,6 +226,15 @@ jobs: contents: 'read' id-token: 'write' steps: + - name: Select test context + id: test-context + run: | + if [ ${{ steps.extract-branch.outputs.name }} == "develop" ]; then + echo "test-context=dev-merge" >> "$GITHUB_OUTPUT" + else + echo "test-context=pr-test" >> "$GITHUB_OUTPUT" + fi + - name: dispatch to terra-github-workflows uses: broadinstitute/workflow-dispatch@v3 with: @@ -234,7 +243,11 @@ jobs: ref: refs/heads/main token: ${{ secrets.BROADBOT_TOKEN}} # github token for access to kick off a job in the private repo # manually recalculate b/c env context is broken https://github.com/actions/runner/issues/480 - inputs: '{ "bee-name": "${{ github.event.repository.name }}-${{ github.run_id }}-${{ matrix.terra-env }}", "ENV": "${{ matrix.testing-env }}" }' + inputs: '{ + "bee-name": "${{ github.event.repository.name }}-${{ github.run_id }}-${{ matrix.terra-env }}", + "ENV": "${{ matrix.testing-env }}", + "test-context":${{ steps.test-context.outputs.test-context }} + }' destroy-bee-workflow: strategy: