fix: workflow conditions for push events
Some checks failed
Build and Push Images / build-nvidia (push) Failing after 15s
Build and Push Images / build-rdna2 (push) Failing after 17s
Build and Push Images / build-strixhalo (push) Failing after 15s
Build and Push Images / build-intel (push) Failing after 16s
Build and Push Images / Release (push) Has been skipped
Build and Push Images / Notify (push) Successful in 1s

The if conditions were checking github.event.inputs.image == '' which
fails for push events where inputs is undefined. Changed logic to run
all builds unless this is a workflow_dispatch with a specific image
selected.
This commit is contained in:
2026-02-03 21:39:17 -05:00
parent 7e7822f995
commit 96921fe799

View File

@@ -34,7 +34,7 @@ jobs:
if: | if: |
!contains(github.event.head_commit.message, '[skip images]') && !contains(github.event.head_commit.message, '[skip images]') &&
!contains(github.event.head_commit.message, '[ray-serve only]') && !contains(github.event.head_commit.message, '[ray-serve only]') &&
(github.event.inputs.image == 'all' || github.event.inputs.image == 'nvidia' || github.event.inputs.image == '') (github.event_name != 'workflow_dispatch' || github.event.inputs.image == 'all' || github.event.inputs.image == 'nvidia')
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
@@ -90,7 +90,7 @@ jobs:
if: | if: |
!contains(github.event.head_commit.message, '[skip images]') && !contains(github.event.head_commit.message, '[skip images]') &&
!contains(github.event.head_commit.message, '[ray-serve only]') && !contains(github.event.head_commit.message, '[ray-serve only]') &&
(github.event.inputs.image == 'all' || github.event.inputs.image == 'rdna2' || github.event.inputs.image == '') (github.event_name != 'workflow_dispatch' || github.event.inputs.image == 'all' || github.event.inputs.image == 'rdna2')
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
@@ -143,7 +143,7 @@ jobs:
if: | if: |
!contains(github.event.head_commit.message, '[skip images]') && !contains(github.event.head_commit.message, '[skip images]') &&
!contains(github.event.head_commit.message, '[ray-serve only]') && !contains(github.event.head_commit.message, '[ray-serve only]') &&
(github.event.inputs.image == 'all' || github.event.inputs.image == 'strixhalo' || github.event.inputs.image == '') (github.event_name != 'workflow_dispatch' || github.event.inputs.image == 'all' || github.event.inputs.image == 'strixhalo')
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
@@ -196,7 +196,7 @@ jobs:
if: | if: |
!contains(github.event.head_commit.message, '[skip images]') && !contains(github.event.head_commit.message, '[skip images]') &&
!contains(github.event.head_commit.message, '[ray-serve only]') && !contains(github.event.head_commit.message, '[ray-serve only]') &&
(github.event.inputs.image == 'all' || github.event.inputs.image == 'intel' || github.event.inputs.image == '') (github.event_name != 'workflow_dispatch' || github.event.inputs.image == 'all' || github.event.inputs.image == 'intel')
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout