From 6602e7bdcaef0d106ce8ec555c6a3342d22def9c Mon Sep 17 00:00:00 2001 From: MazOneTwoOne <76905544+MazOneTwoOne@users.noreply.github.com> Date: Wed, 28 Aug 2024 16:34:12 +0100 Subject: [PATCH] - update `delete_uat_release.yml` to use `pull_request_target` event for GitHub action --- .github/workflows/delete_uat_release.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/delete_uat_release.yml b/.github/workflows/delete_uat_release.yml index e23063cd5..f40235b6c 100644 --- a/.github/workflows/delete_uat_release.yml +++ b/.github/workflows/delete_uat_release.yml @@ -1,15 +1,12 @@ name: Delete UAT release on: - pull_request: + pull_request_target: 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