Skip to content

Commit

Permalink
Merge pull request #1518 from ministryofjustice/EL-1624-update-github…
Browse files Browse the repository at this point in the history
…-action

EL-1624: update `delete_uat_release.yml` GitHub action
  • Loading branch information
MazOneTwoOne authored Aug 29, 2024
2 parents 42fc0ab + 6602e7b commit 34cd610
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/delete_uat_release.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 34cd610

Please sign in to comment.