From d9f90bf6112546e2a9448e6e0a22fb1dd9d7e63d Mon Sep 17 00:00:00 2001 From: Will Clarke Date: Wed, 17 Jul 2024 11:04:47 +0100 Subject: [PATCH] update trigger for STG deletion --- .github/actions/delete-uat-release/action.yml | 5 +++-- .github/workflows/delete_uat_release.yml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/actions/delete-uat-release/action.yml b/.github/actions/delete-uat-release/action.yml index 46a2aeda..ea224c54 100644 --- a/.github/actions/delete-uat-release/action.yml +++ b/.github/actions/delete-uat-release/action.yml @@ -1,5 +1,5 @@ name: "Delete UAT deployment" -description: 'Deletes a UAT deployment with a name that matches the merged or closed branch' +description: 'Deletes a FALA UAT/Staging deployment with a name that matches the merged or closed branch' inputs: k8s_cluster: description: "Kubernetes cluster name" @@ -36,9 +36,10 @@ runs: env: BRANCH_NAME: ${{ inputs.branch_name || 'not_given' }} run: | + echo "This is the branch name $BRANCH_NAME" if [ $BRANCH_NAME == "not_given" ] then - if [ $GITHUB_EVENT_NAME == "pull_request" ] + if [ $GITHUB_EVENT_NAME == "pull_request_target" ] then branch=$GITHUB_HEAD_REF else diff --git a/.github/workflows/delete_uat_release.yml b/.github/workflows/delete_uat_release.yml index 8004c650..a4eb71b7 100644 --- a/.github/workflows/delete_uat_release.yml +++ b/.github/workflows/delete_uat_release.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Delete from UAT namespace + - name: Delete from STAGING namespace id: delete_uat uses: ./.github/actions/delete-uat-release with: