diff --git a/.github/workflows/rust-ci-reusable.yml b/.github/workflows/rust-ci-reusable.yml index 34614839..8032f1a2 100644 --- a/.github/workflows/rust-ci-reusable.yml +++ b/.github/workflows/rust-ci-reusable.yml @@ -106,7 +106,7 @@ jobs: check: name: Cargo check + clippy + fmt runs-on: ${{ inputs.runs-on }} - if: hashFiles(format('{0}/Cargo.toml', inputs.working_directory)) != '' + if: ${{ hashFiles(format('{0}/Cargo.toml', inputs.working_directory)) != '' }} permissions: contents: read defaults: @@ -146,7 +146,7 @@ jobs: name: Cargo test runs-on: ${{ inputs.runs-on }} needs: check - if: hashFiles(format('{0}/Cargo.toml', inputs.working_directory)) != '' + if: ${{ hashFiles(format('{0}/Cargo.toml', inputs.working_directory)) != '' }} permissions: contents: read defaults: