Skip to content

Commit

Permalink
chore: remove deprecated add-path from CI (#1026)
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`.

Co-authored-by: Darin Morrison <darinmorrison@users.noreply.github.com>
  • Loading branch information
silvanshade and darinmorrison authored Oct 9, 2020
1 parent 4e87df5 commit 288f71d
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 288f71d

Please sign in to comment.