Skip to content

Commit

Permalink
comment out other flows so it doesnt short circuit
Browse files Browse the repository at this point in the history
  • Loading branch information
oshi97 committed Jan 28, 2022
1 parent 62c657a commit 427f0d2
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,46 +11,46 @@ on:
- release/**

jobs:
call_build:
uses: ./.github/workflows/build.yml
# call_build:
# uses: ./.github/workflows/build.yml

call_unit_test:
uses: ./.github/workflows/unit_test.yml
needs: call_build
# call_unit_test:
# uses: ./.github/workflows/unit_test.yml
# needs: call_build

call_misc_tests:
uses: ./.github/workflows/miscellaneous_tests.yml

call_acceptance:
uses: ./.github/workflows/acceptance.yml
needs: call_build
secrets:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
# call_acceptance:
# uses: ./.github/workflows/acceptance.yml
# needs: call_build
# secrets:
# BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
# BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}

format_branch_name:
runs-on: ubuntu-latest
outputs:
formatted_branch: ${{ steps.vars.outputs.formatted_branch }}
steps:
- name: Format branch name # replace '/' with '-'
id: vars
run: |
FORMATTED_BRANCH="$(echo ${GITHUB_REF_NAME} | sed "s/\//-/g")"
echo $FORMATTED_BRANCH
echo ::set-output name=formatted_branch::${FORMATTED_BRANCH}
# format_branch_name:
# runs-on: ubuntu-latest
# outputs:
# formatted_branch: ${{ steps.vars.outputs.formatted_branch }}
# steps:
# - name: Format branch name # replace '/' with '-'
# id: vars
# run: |
# FORMATTED_BRANCH="$(echo ${GITHUB_REF_NAME} | sed "s/\//-/g")"
# echo $FORMATTED_BRANCH
# echo ::set-output name=formatted_branch::${FORMATTED_BRANCH}

call_deploy:
needs:
- call_unit_test
- format_branch_name
- call_acceptance
uses: ./.github/workflows/deploy.yml
with:
directory: dev/${{ needs.format_branch_name.outputs.formatted_branch }}
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# call_deploy:
# needs:
# - call_unit_test
# - format_branch_name
# - call_acceptance
# uses: ./.github/workflows/deploy.yml
# with:
# directory: dev/${{ needs.format_branch_name.outputs.formatted_branch }}
# secrets:
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

concurrency:
group: ci-build-and-deploy-${{ github.ref }}-1
Expand Down

0 comments on commit 427f0d2

Please sign in to comment.