Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: param to override repo name in template cleanup #95

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading