Skip to content

Commit

Permalink
ci: make testflinger publish job conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
farshidtz committed Dec 17, 2024
1 parent 4025064 commit bd0f133
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/nvidia-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,14 @@ on:
description: 'Run id number'
required: true
type: number
publish:
description: 'Publish to Store'
default: true
type: boolean

jobs:
publish:
if: ${{ inputs.publish == true }}
runs-on: ubuntu-latest
steps:
- name: Get the artifact
Expand All @@ -31,8 +36,9 @@ jobs:
release: latest/edge/runid-${{ inputs.run_id }}

test:
runs-on: [self-hosted, testflinger]
needs: publish
if: ${{ always() && !failure() && !cancelled() }}
runs-on: [self-hosted, testflinger]
env:
TESTFLINGER_DIR: .github/workflows/testflinger
JOB_QUEUE: docker-nvidia
Expand Down

0 comments on commit bd0f133

Please sign in to comment.