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
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:
@@ -34,7 +34,7 @@ jobs:
|
||||
if: |
|
||||
!contains(github.event.head_commit.message, '[skip images]') &&
|
||||
!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
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -90,7 +90,7 @@ jobs:
|
||||
if: |
|
||||
!contains(github.event.head_commit.message, '[skip images]') &&
|
||||
!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
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -143,7 +143,7 @@ jobs:
|
||||
if: |
|
||||
!contains(github.event.head_commit.message, '[skip images]') &&
|
||||
!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
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -196,7 +196,7 @@ jobs:
|
||||
if: |
|
||||
!contains(github.event.head_commit.message, '[skip images]') &&
|
||||
!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
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
||||
Reference in New Issue
Block a user