@@ -29,10 +29,10 @@ jobs:
2929 terraform_version : ${{ steps.variables.outputs.terraform_version }}
3030 environment_tag : ${{ steps.variables.outputs.environment_tag }}
3131 version : ${{ steps.variables.outputs.version }}
32- does_pull_request_exist : ${{ steps.pr_exists .outputs.does_pull_request_exist }}
32+ does_pull_request_exist : ${{ steps.pr .outputs.does_pull_request_exist }}
3333 steps :
3434 - name : " Checkout code"
35- uses : actions/checkout@v4
35+ uses : actions/checkout@v6
3636 with :
3737 submodules : ' true'
3838 - name : " Set CI/CD variables"
@@ -47,10 +47,10 @@ jobs:
4747 echo "nodejs_version=$(grep "^nodejs" .tool-versions | cut -f2 -d' ')" >> $GITHUB_OUTPUT
4848 echo "python_version=$(grep "^nodejs" .tool-versions | cut -f2 -d' ')" >> $GITHUB_OUTPUT
4949 echo "terraform_version=$(grep "^terraform" .tool-versions | cut -f2 -d' ')" >> $GITHUB_OUTPUT
50- echo "version=$(head -n 1 .version 2> /dev/null || echo unknown)" >> $GITHUB_OUTPUT
5150 echo "environment_tag=development" >> $GITHUB_OUTPUT
51+ echo "version=$(head -n 1 .version 2> /dev/null || echo unknown)" >> $GITHUB_OUTPUT
5252 - name : " Check if pull request exists for this branch"
53- id : pr_exists
53+ id : pr
5454 env :
5555 GH_TOKEN : ${{ github.token }}
5656 run : |
7474 export TERRAFORM_VERSION="${{ steps.variables.outputs.terraform_version }}"
7575 export ENVIRONMENT_TAG="${{ steps.variables.outputs.environment_tag }}"
7676 export VERSION="${{ steps.variables.outputs.version }}"
77- export DOES_PULL_REQUEST_EXIST="${{ steps.pr_exists .outputs.does_pull_request_exist }}"
77+ export DOES_PULL_REQUEST_EXIST="${{ steps.pr .outputs.does_pull_request_exist }}"
7878 make list-variables
7979 commit-stage : # Recommended maximum execution time is 2 minutes
8080 name : " Commit stage"
@@ -148,19 +148,6 @@ jobs:
148148 function_app_source_code_path : application/CohortManager/src
149149 project_name : cohort-manager
150150 build_all_images : true
151- acceptance-stage : # Recommended maximum execution time is 10 minutes
152- name : " Acceptance stage"
153- needs : [metadata, build-image-stage]
154- uses : ./.github/workflows/stage-4-acceptance.yaml
155- if : needs.metadata.outputs.does_pull_request_exist == 'true' || (github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'reopened'))
156- with :
157- build_datetime : " ${{ needs.metadata.outputs.build_datetime }}"
158- build_timestamp : " ${{ needs.metadata.outputs.build_timestamp }}"
159- build_epoch : " ${{ needs.metadata.outputs.build_epoch }}"
160- nodejs_version : " ${{ needs.metadata.outputs.nodejs_version }}"
161- python_version : " ${{ needs.metadata.outputs.python_version }}"
162- terraform_version : " ${{ needs.metadata.outputs.terraform_version }}"
163- version : " ${{ needs.metadata.outputs.version }}"
164151 deploy-stage :
165152 if : github.event_name == 'push' && github.ref == 'refs/heads/main'
166153 name : Deploy environments for commit ${{ github.sha }}
0 commit comments