Skip to content

fix: undeploy.sh misses runtime-created CRDs, webhooks, and workload namespaces #195

fix: undeploy.sh misses runtime-created CRDs, webhooks, and workload namespaces

fix: undeploy.sh misses runtime-created CRDs, webhooks, and workload namespaces #195

Workflow file for this run

# Copyright (c) 2026, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Issue Triage
on:
issues:
types: [opened, labeled]
workflow_dispatch: {}
permissions:
contents: read
jobs:
triage:
name: Auto-Triage Issues
runs-on: ubuntu-latest
permissions:
issues: write
timeout-minutes: 5
steps:
- name: Add needs-triage on new issue
if: github.event.action == 'opened'
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
script: |
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
labels: ['needs-triage']
});
- name: Remove needs-triage when triaged
if: >-
github.event.action == 'labeled' &&
github.event.label.name != 'needs-triage'
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
script: |
const { data: labels } = await github.rest.issues.listLabelsOnIssue({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
});
if (labels.some(l => l.name === 'needs-triage')) {
await github.rest.issues.removeLabel({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
name: 'needs-triage',
});
}