Skip to content

Commit 5d18f27

Browse files
use specified branch or tag for testing jobs
1 parent 52865c4 commit 5d18f27

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/full-deploy-to-pre-prod.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
steps:
2828
- name: Display client passed variables
2929
run: |
30-
echo Build Branch: main
30+
echo Build Branch: ${{ github.event.inputs.branch_or_tag }}
3131
echo Sandbox: pre-prod
3232
echo Environment: pre-prod
3333
echo Cypress Base Url: ${{ vars.CYPRESS_BASE_URL }}
@@ -37,27 +37,27 @@ jobs:
3737
uses: ./.github/workflows/base-lambdas-reusable-test.yml
3838
with:
3939
python_version: "3.11"
40-
build_branch: main
40+
build_branch: ${{ github.event.inputs.branch_or_tag }}
4141

4242
react_testing_job:
4343
name: Run UI Unit Tests
4444
uses: ./.github/workflows/base-vitest-test.yml
4545
with:
46-
build_branch: main
46+
build_branch: ${{ github.event.inputs.branch_or_tag }}
4747

4848
cypress_build_job:
4949
name: Build UI version for E2E Tests
5050
uses: ./.github/workflows/base-cypress-build.yml
5151
with:
52-
build_branch: main
52+
build_branch: ${{ github.event.inputs.branch_or_tag }}
5353

5454
cypress_test_job:
5555
name: Run Cypress E2E Tests
5656
needs: [cypress_build_job]
5757
uses: ./.github/workflows/base-cypress-test-all-env.yml
5858
with:
5959
cypress_base_url: ${{ vars.CYPRESS_BASE_URL }}
60-
build_branch: main
60+
build_branch: ${{ github.event.inputs.branch_or_tag }}
6161

6262
tag_and_release:
6363
needs: ["lambda_test_job", "react_testing_job", "cypress_test_job"]

0 commit comments

Comments
 (0)