diff --git a/.github/workflows/qe-ocp-arm-416.yaml b/.github/workflows/qe-ocp-arm-416.yaml index 5bbca1a4a..4dd314a59 100644 --- a/.github/workflows/qe-ocp-arm-416.yaml +++ b/.github/workflows/qe-ocp-arm-416.yaml @@ -3,6 +3,8 @@ name: OCP ARM64 4.16 QE Testing on: pull_request: branches: [ main ] + label: + types: [deleted] workflow_dispatch: # Schedule a daily cron at midnight UTC schedule: @@ -23,7 +25,7 @@ env: jobs: build-arm-image-for-qe: - if: github.event.pull_request.user.login!='dependabot[bot]' + if: github.event.pull_request.user.login!='dependabot[bot]' && !contains(github.event.pull_request.labels.*.name, 'self-hosted-disable') runs-on: qe-ocp-arm1 steps: - name: Check out code @@ -53,7 +55,7 @@ jobs: qe-ocp-arm-testing: runs-on: qe-ocp-arm1 needs: build-arm-image-for-qe - if: needs.build-arm-image-for-qe.result == 'success' && github.event.pull_request.user.login!='dependabot[bot]' + if: needs.build-arm-image-for-qe.result == 'success' && github.event.pull_request.user.login!='dependabot[bot]' && !contains(github.event.pull_request.labels.*.name, 'self-hosted-disable') strategy: fail-fast: false matrix: diff --git a/.github/workflows/qe-ocp-pre-main.yaml b/.github/workflows/qe-ocp-pre-main.yaml index adc0121dc..ba81842c5 100644 --- a/.github/workflows/qe-ocp-pre-main.yaml +++ b/.github/workflows/qe-ocp-pre-main.yaml @@ -3,6 +3,8 @@ name: OCP Pre-Main Testing on: pull_request: branches: [ main ] + label: + types: [deleted] permissions: contents: read @@ -21,7 +23,7 @@ jobs: # Build the image used for testing first, then pass the reference to the QE tests. # This saves time and resources by not building the image in each QE suite. build-image-for-qe: - if: github.event.pull_request.user.login!='dependabot[bot]' + if: github.event.pull_request.user.login!='dependabot[bot]' && !contains(github.event.pull_request.labels.*.name, 'self-hosted-disable') runs-on: ubuntu-22.04 steps: - name: Check out code @@ -50,7 +52,7 @@ jobs: qe-ocp-testing: runs-on: qe-ocp-416 needs: build-image-for-qe - if: needs.build-image-for-qe.result == 'success' && github.event.pull_request.user.login!='dependabot[bot]' + if: needs.build-image-for-qe.result == 'success' && github.event.pull_request.user.login!='dependabot[bot]' && !contains(github.event.pull_request.labels.*.name, 'self-hosted-disable') strategy: fail-fast: false matrix: