Skip to content

Commit

Permalink
chore: remove deprecated add-path from CI
Browse files Browse the repository at this point in the history
## Motivation

Use of `echo "::add-path::<PATH>"` has been deprecated on GitHub CI.

## Solution

Update CI to use new path setter `echo "<PATH>" >> $GITHUB_PATH`.
  • Loading branch information
darinmorrison committed Oct 8, 2020
1 parent 4e87df5 commit 5efc569
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
with:
path: ${{ runner.tool_cache }}/cargo-hack/bin
key: cargo-hack-bin-${{ hashFiles('.github/caching/cargo-hack.lock') }}
- run: echo "::add-path::${{ runner.tool_cache }}/cargo-hack/bin"
- run: echo "${{ runner.tool_cache }}/cargo-hack/bin" >> $GITHUB_PATH
# if `cargo-hack` somehow doesn't exist after loading it from the cache,
# make *sure* it's there.
- run: cargo hack --help || { cargo install --force cargo-hack; }
Expand Down Expand Up @@ -303,5 +303,5 @@ jobs:
with:
command: install
args: --root ${{ runner.tool_cache }}/cargo-audit --force cargo-audit
- run: echo "::add-path::${{ runner.tool_cache }}/cargo-audit/bin"
- run: echo "${{ runner.tool_cache }}/cargo-audit/bin" >> $GITHUB_PATH
- run: cargo audit

0 comments on commit 5efc569

Please sign in to comment.