Skip to content

Commit

Permalink
use sed for replace
Browse files Browse the repository at this point in the history
  • Loading branch information
mscroggs committed Nov 1, 2023
1 parent bb66122 commit 5670830
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/style-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5670830

Please sign in to comment.