Skip to content

Commit

Permalink
feat: param to override repo name in template cleanup (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored Oct 23, 2024
1 parent 06af4e4 commit f5970ab
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/.pr-close.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ on:
required: false
type: string
default: ${{ github.event.repository.default_branch }}
cleanup_name:
description: 'Use if template/cleanup name differs from repo'
type: string
default: ${{ github.event.repository.name }}
organization:
description: 'GitHub organization; e.g. bcgov'
default: ${{ github.repository_owner }}
Expand Down Expand Up @@ -149,7 +153,7 @@ jobs:
# OC setup
- uses: redhat-actions/openshift-tools-installer@v1
with:
oc: "4"
oc: "4.14.37"

# OC Login
- run: |
Expand All @@ -176,7 +180,7 @@ jobs:
# OC Template cleanup steps
# Remove old build runs, build pods and deployment pods
oc delete all,cm,pvc,secret -l app=${{ inputs.repository }}-${{ inputs.target }}
oc delete all,cm,pvc,secret -l app=${{ inputs.cleanup_name }}-${{ inputs.target }}
# Remove PVCs from OpenShift when PR closed
- name: Remove PVCs
Expand Down

0 comments on commit f5970ab

Please sign in to comment.