Skip to content

Commit 25dc93b

Browse files
authored
Merge pull request #69 from dtolnay/sparseregistry
Tweak sparse registry conditional
2 parents b17a489 + 138ed95 commit 25dc93b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ runs:
100100
- run: |
101101
: enable Cargo sparse registry
102102
# except on 1.66 and 1.67, on which it is unstable
103-
if [ -z ${CARGO_REGISTRIES_CRATES_IO_PROTOCOL+set} ] \
104-
&& ! rustc +${{steps.parse.outputs.toolchain}} --version --verbose | grep -q '^release: 1\.6[67]\.'
105-
then
106-
echo CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse >> $GITHUB_ENV
103+
if [ -z ${CARGO_REGISTRIES_CRATES_IO_PROTOCOL+set} ]; then
104+
if rustc +${{steps.parse.outputs.toolchain}} --version --verbose | not grep -q '^release: 1\.6[67]\.'; then
105+
echo CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse >> $GITHUB_ENV
106+
fi
107107
fi
108108
shell: bash
109109

0 commit comments

Comments
 (0)