From 07b4a799be9a5b6daae124687ad171333b9b0ce8 Mon Sep 17 00:00:00 2001 From: yangliwei Date: Thu, 8 Feb 2024 18:13:13 +0800 Subject: [PATCH] Use CUDA_PATH as the if conditional for running workflow jobs --- .github/workflows/rules.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rules.yml b/.github/workflows/rules.yml index d1c0632..ed8b461 100644 --- a/.github/workflows/rules.yml +++ b/.github/workflows/rules.yml @@ -1,6 +1,9 @@ # A single CI script with github workflow name: Tests +env: + CUDA_PATH: echo $CUDA_PATH + on: push: pull_request: @@ -8,7 +11,7 @@ on: jobs: build: - if: contains(github.event.pull_request.labels.*.name, 'run-workflow') || github.event_name == 'push' && {{ $CUDA_PATH != '' }} + if: contains(github.event.pull_request.labels.*.name, 'run-workflow') || github.event_name == 'push' && github.env.CUDA_PATH != '' strategy: matrix: os: [ubuntu-latest]