diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index e53229f1..43be4c04 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -36,9 +36,7 @@ jobs: - name: Generate cache key id: cache-key - run: | - info="${{matrix.rust-version }}-${{ matrix.mpi }}-${{ matrix.feature-flags }}" - echo "key=${info//@(,| )/-}" >> $GITHUB_OUTPUT + run: echo "key=$(sed \"s/[, ]/-/g\" <<< \"${{matrix.rust-version }}-${{ matrix.mpi }}-${{ matrix.feature-flags }}\")" >> $GITHUB_OUTPUT - name: Cache Rust build uses: Swatinem/rust-cache@v2 with: diff --git a/.github/workflows/style-checks.yml b/.github/workflows/style-checks.yml index c09de6f7..05f23076 100644 --- a/.github/workflows/style-checks.yml +++ b/.github/workflows/style-checks.yml @@ -33,9 +33,7 @@ jobs: - name: Generate cache key id: cache-key - run: | - info="${{matrix.rust-version }}-${{ matrix.mpi }}-${{ matrix.feature-flags }}" - echo "key=${info//@(,| )/-}" >> $GITHUB_OUTPUT + run: echo "key=$(sed \"s/[, ]/-/g\" <<< \"${{matrix.rust-version }}-${{ matrix.mpi }}-${{ matrix.feature-flags }}\")" >> $GITHUB_OUTPUT - name: Cache Rust build uses: Swatinem/rust-cache@v2 with: