Bump debug from 1.11.0 to 1.11.1 #233
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Review apps: on PR close" | |
| on: | |
| pull_request: | |
| # only run when a PR is closed or merged | |
| types: [closed] | |
| env: | |
| IMAGE_TAG: "842676007477.dkr.ecr.eu-west-2.amazonaws.com/forms-product-page:pr-${{github.event.pull_request.number}}-${{github.event.pull_request.head.ref}}" | |
| jobs: | |
| delete-review-app: | |
| # this references a codebuild project configured in forms-deploy | |
| # see: https://docs.aws.amazon.com/codebuild/latest/userguide/action-runner.html | |
| runs-on: codebuild-review-forms-product-page-gha-runner-${{github.run_id}}-${{github.run_attempt}} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| - name: Determine Terraform version | |
| id: terraform-version | |
| run: | | |
| cat .review_apps/.terraform-version | xargs printf "TF_VERSION=%s" >> "$GITHUB_OUTPUT" | |
| - uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2 | |
| with: | |
| terraform_version: ${{steps.terraform-version.outputs.TF_VERSION}} | |
| - name: Delete review app | |
| run: | | |
| cd .review_apps/ | |
| terraform init -backend-config="key=review-apps/forms-product-page/pr-${{github.event.pull_request.number}}.tfstate" | |
| terraform destroy \ | |
| -var "pull_request_number=${{github.event.pull_request.number}}" \ | |
| -var "forms_product_page_container_image=${{env.IMAGE_TAG}}" \ | |
| -no-color \ | |
| -auto-approve |