Skip to content

[Snyk] Security upgrade rails from 7.1.3.4 to 7.2.0 #1293

[Snyk] Security upgrade rails from 7.1.3.4 to 7.2.0

[Snyk] Security upgrade rails from 7.1.3.4 to 7.2.0 #1293

name: Delete UAT release
on:
pull_request:
types:
- closed
jobs:
delete_uat_job:
# Adding a condition so that the `pull_request` workflow cathes merged PRs, if not caught when the PR closes. Have had some instances when the job runs but the UAT pod still exists.
# As per this documentation https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#running-your-pull_request-workflow-when-a-pull-request-merges
if: github.event.pull_request.merged == true || github.event.pull_request.merged == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Delete from UAT namespace
id: delete_uat
uses: ./.github/actions/delete-uat-release
with:
k8s_cluster: ${{ secrets.AUTOGENERATED_CCQ_UAT_K8S_CLUSTER_NAME }}
k8s_cluster_cert: ${{ secrets.AUTOGENERATED_CCQ_UAT_K8S_CLUSTER_CERT }}
k8s_namespace: ${{ secrets.AUTOGENERATED_CCQ_UAT_K8S_NAMESPACE }}
k8s_token: ${{ secrets.AUTOGENERATED_CCQ_UAT_K8S_TOKEN }}
- name: Result
shell: bash
run: echo ${{ steps.delete_uat.outputs.delete-message }}\