Skip to content

Commit a5a81e7

Browse files
committed
Destroy workflow on close PR
1 parent 59a73bf commit a5a81e7

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

.github/workflows/on_pr_close.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,16 @@ jobs:
3535
save-to-cache: "true"
3636
restore-from-cache: "false"
3737

38-
destroy-pr-workspaces:
39-
runs-on: [self-hosted, ci]
40-
needs: [parse-secrets, build-base]
41-
steps:
42-
- uses: actions/checkout@v4
43-
with:
44-
ref: ${{ env.BRANCH_NAME }}
45-
fetch-depth: 0
46-
- name: Remove PR workspaces
47-
uses: ./.github/actions/make/
48-
with:
49-
command: destroy--redundant-workspaces BRANCH_NAME=origin/${{ env.BRANCH_NAME }} DESTROY_ALL_COMMITS_ON_BRANCH=true KILL_ALL=true TF_CLI_ARGS=${{ env.TF_CLI_ARGS }}
50-
requires-aws: true
38+
destroy-pr-workspaces:
39+
runs-on: [self-hosted, ci]
40+
needs: [parse-secrets, build-base]
41+
steps:
42+
- uses: actions/checkout@v4
43+
with:
44+
ref: ${{ env.BRANCH_NAME }}
45+
fetch-depth: 0
46+
- name: Remove PR workspaces
47+
uses: ./.github/actions/make/
48+
with:
49+
command: destroy--redundant-workspaces BRANCH_NAME=origin/${{ env.BRANCH_NAME }} DESTROY_ALL_COMMITS_ON_BRANCH=true KILL_ALL=true TF_CLI_ARGS=${{ env.TF_CLI_ARGS }}
50+
requires-aws: true

0 commit comments

Comments
 (0)