From 56708303a103913d2f5d2e7f28377159c6638614 Mon Sep 17 00:00:00 2001 From: Matthew Scroggs Date: Wed, 1 Nov 2023 13:44:16 +0000 Subject: [PATCH] use sed for replace --- .github/workflows/run-tests.yml | 4 +--- .github/workflows/style-checks.yml | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) 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: