From f64c876bee8ef90e1573b02043092b91c4cf6854 Mon Sep 17 00:00:00 2001 From: yangliwei Date: Wed, 14 Feb 2024 14:50:27 +0800 Subject: [PATCH] Minor fix to the use of env for CUDA_PATH in the workflow --- .github/workflows/rules.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rules.yml b/.github/workflows/rules.yml index ed8b461..6415be0 100644 --- a/.github/workflows/rules.yml +++ b/.github/workflows/rules.yml @@ -2,7 +2,7 @@ name: Tests env: - CUDA_PATH: echo $CUDA_PATH + CUDA_PATH: on: push: @@ -11,7 +11,7 @@ on: jobs: build: - if: contains(github.event.pull_request.labels.*.name, 'run-workflow') || github.event_name == 'push' && github.env.CUDA_PATH != '' + if: ${{ contains(github.event.pull_request.labels.*.name, 'run-workflow') || github.event_name == 'push' }} && env.CUDA_PATH != '' strategy: matrix: os: [ubuntu-latest]