File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3939 echo "nodejs_version=$(grep "^nodejs" .tool-versions | cut -f2 -d' ')" >> $GITHUB_OUTPUT
4040 echo "python_version=$(grep "^nodejs" .tool-versions | cut -f2 -d' ')" >> $GITHUB_OUTPUT
4141 echo "terraform_version=$(grep "^terraform" .tool-versions | cut -f2 -d' ')" >> $GITHUB_OUTPUT
42- echo "version=$(head -n 1 .version 2> /dev/null || echo unknown)" >> $GITHUB_OUTPUT
42+ echo "version=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_OUTPUT
43+ # echo "version=$(head -n 1 .version 2> /dev/null || echo unknown)" >> $GITHUB_OUTPUT
4344 - name : " Check if pull request exists for this branch"
4445 id : pr_exists
4546 env :
Original file line number Diff line number Diff line change 11name : " CI/CD publish"
22
33on :
4- pull_request :
5- types : [closed]
4+ push :
65 branches :
76 - main
87
@@ -54,10 +53,12 @@ jobs:
5453 steps :
5554 - name : " Checkout code"
5655 uses : actions/checkout@v4
56+
5757 - name : " Get the artefacts"
5858 run : |
5959 echo "Getting the artefacts created by the build stage ..."
6060 # TODO: Use either action/cache or action/upload-artifact
61+
6162 - name : " Create release"
6263 id : create_release
6364 uses : actions/create-release@v1
Original file line number Diff line number Diff line change 1- name : Github OIDC test
1+ name : Manual Terraform Plan
22
33on :
44 workflow_dispatch :
3535 run : |
3636 make dependencies install-python
3737 make build
38+
3839 - name : " Upload lambda artefact"
3940 uses : actions/upload-artifact@v4
4041 with :
6364
6465 run : |
6566 mkdir -p ./build
66- echo "Running: make terraform env=$ENVIRONMENT workspace=$ENVIRONMENT stack=networking tf-command=plan args=\"-auto-approve\""
67- make terraform env=$ENVIRONMENT stack=networking tf-command=plan workspace=$ENVIRONMENT
67+ echo "Running: make terraform env=$ENVIRONMENT workspace=$WORKSPACE stack=networking tf-command=plan args=\"-auto-approve\""
68+ make terraform env=$ENVIRONMENT stack=networking tf-command=plan workspace=$WORKSPACE
6869 echo "Running: make terraform env=$ENVIRONMENT workspace=$WORKSPACE stack=api-layer tf-command=plan args=\"-auto-approve\""
6970 make terraform env=$ENVIRONMENT stack=api-layer tf-command=plan workspace=$WORKSPACE
7071
You can’t perform that action at this time.
0 commit comments