Skip to content

Do not trigger CI when PR is a draft #1820

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

Open
wants to merge 1 commit into
base: stackhpc/2025.1
Choose a base branch
from
Open
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
22 changes: 11 additions & 11 deletions .github/workflows/stackhpc-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
permissions:
pull-requests: read
name: Check changed files
if: github.repository == 'stackhpc/stackhpc-kayobe-config'
if: github.repository == 'stackhpc/stackhpc-kayobe-config' && !github.event.pull_request.draft
needs:
- lint
# - tox
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
- environment: docs
python-version: "3.12"
name: Tox ${{ matrix.environment }} with Python ${{ matrix.python-version }}
if: github.repository == 'stackhpc/stackhpc-kayobe-config'
if: github.repository == 'stackhpc/stackhpc-kayobe-config' && !github.event.pull_request.draft
steps:
- name: GitHub Checkout 🛎
uses: actions/checkout@v4
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
- ansible: "2.17"
python: "3.10"
name: Ansible ${{ matrix.ansible }} lint with Python ${{ matrix.python }}
if: github.repository == 'stackhpc/stackhpc-kayobe-config'
if: github.repository == 'stackhpc/stackhpc-kayobe-config' && !github.event.pull_request.draft
steps:
- name: GitHub Checkout 🛎
uses: actions/checkout@v4
Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:
uses: ./.github/workflows/stackhpc-build-kayobe-image.yml
with:
if: ${{ needs.check-changes.outputs.build-kayobe-image == 'true' }}
if: github.repository == 'stackhpc/stackhpc-kayobe-config'
if: github.repository == 'stackhpc/stackhpc-kayobe-config' && !github.event.pull_request.draft

check-tags:
name: Check container image tags
Expand All @@ -128,7 +128,7 @@ jobs:
kayobe_image: ${{ needs.build-kayobe-image.outputs.kayobe_image }}
if: ${{ needs.check-changes.outputs.check-tags == 'true' }}
secrets: inherit
if: ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' }}
if: ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' && !github.event.pull_request.draft }}

all-in-one-ubuntu-noble-ovn:
name: aio (Ubuntu Noble OVN)
Expand All @@ -145,7 +145,7 @@ jobs:
OS_CLOUD: openstack
if: ${{ needs.check-changes.outputs.aio == 'true' }}
secrets: inherit
if: ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' }}
if: ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' && !github.event.pull_request.draft }}

all-in-one-rocky-9-ovs:
name: aio (Rocky 9 OVS)
Expand All @@ -162,7 +162,7 @@ jobs:
OS_CLOUD: openstack
if: ${{ needs.check-changes.outputs.aio == 'true' }}
secrets: inherit
if: ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' }}
if: ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' && !github.event.pull_request.draft }}

all-in-one-rocky-9-ovn:
name: aio (Rocky 9 OVN)
Expand All @@ -179,7 +179,7 @@ jobs:
OS_CLOUD: openstack
if: ${{ needs.check-changes.outputs.aio == 'true' }}
secrets: inherit
if: ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' }}
if: ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' && !github.event.pull_request.draft }}

# Test two upgrade scenarios: Ubuntu Jammy to Noble OVN and Rocky 9 OVN.

Expand All @@ -199,7 +199,7 @@ jobs:
if: ${{ needs.check-changes.outputs.aio == 'true' }}
upgrade: true
secrets: inherit
if: ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' }}
if: ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' && !github.event.pull_request.draft }}

all-in-one-upgrade-rocky-9-ovn:
name: aio upgrade (Rocky 9 OVN)
Expand All @@ -217,7 +217,7 @@ jobs:
if: ${{ needs.check-changes.outputs.aio == 'true' }}
upgrade: true
secrets: inherit
if: ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' }}
if: ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' && !github.event.pull_request.draft }}

all-in-one-upgrade-rocky-9-ovs:
name: aio upgrade (Rocky 9 OVS)
Expand All @@ -235,4 +235,4 @@ jobs:
if: ${{ needs.check-changes.outputs.aio == 'true' }}
upgrade: true
secrets: inherit
if: ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' }}
if: ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' && !github.event.pull_request.draft }}