Skip to content

Commit 4cd8a05

Browse files
committed
CI: Address actionlint/shellcheck issues in macos.yml workflow
1 parent 7851a8a commit 4cd8a05

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/macos.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
pyyaml
6666
run: |
6767
cp ./macos/files/conda-requirements-dev-arm64.txt "${RUNNER_TEMP}/macos_dependencies.txt"
68-
echo "$test_dependencies" | sed "s/ /\n/g" >> "${RUNNER_TEMP}/macos_dependencies.txt"
68+
echo "${test_dependencies// /\n}" >> "${RUNNER_TEMP}/macos_dependencies.txt"
6969
- name: Setup Mamba
7070
uses: mamba-org/setup-micromamba@b09ef9b599704322748535812ca03efb2625677b # v2.0.5
7171
with:
@@ -81,12 +81,12 @@ jobs:
8181
printenv | sort
8282
$CC --version
8383
- name: Create installation directory
84-
run: mkdir $HOME/install
84+
run: mkdir "${HOME}/install"
8585
- name: Build and install
8686
shell: micromamba-shell {0}
87-
run: source ./.github/workflows/macos_install.sh $HOME/install
87+
run: source ./.github/workflows/macos_install.sh "${HOME}/install"
8888
- name: Add the bin directory to PATH
89-
run: echo "$HOME/install/bin" >> $GITHUB_PATH
89+
run: echo "${HOME}/install/bin" >> "${GITHUB_PATH}"
9090
- name: Check installed version
9191
if: ${{ !cancelled() }}
9292
shell: micromamba-shell {0}

0 commit comments

Comments
 (0)