Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EL-1621 update trigger for Github Action STG deletion #317

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/actions/delete-uat-release/action.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/delete_uat_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading