Skip to content

Commit 2e9b1af

Browse files
authored
feat: add param for github environments (#87)
1 parent 48e322c commit 2e9b1af

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/.pr-close.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
description: 'Type of cleanup; e.g. helm or label'
99
required: false
1010
type: string
11+
environment:
12+
description: Environment name; omit for PRs
13+
required: false
14+
type: string
1115
oc_server:
1216
default: https://api.silver.devops.gov.bc.ca:6443
1317
description: 'OpenShift server'
@@ -138,6 +142,7 @@ jobs:
138142
cleanup:
139143
name: OpenShift
140144
if: inputs.cleanup == 'helm' || inputs.cleanup == 'label'
145+
environment: ${{ inputs.environment }}
141146
runs-on: ubuntu-24.04
142147
timeout-minutes: 10
143148
steps:

0 commit comments

Comments
 (0)