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

Add 'self-hosted-disable' label filter for PRs #2595

Merged
Show file tree
Hide file tree
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
6 changes: 4 additions & 2 deletions .github/workflows/qe-ocp-arm-416.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/qe-ocp-pre-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: OCP Pre-Main Testing
on:
pull_request:
branches: [ main ]
label:
types: [deleted]

permissions:
contents: read
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down
Loading