Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-leonhard committed Oct 2, 2024
1 parent 5cb64ed commit d2cb6ee
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:
crate: cargo-hack
version: ^0.4.4
cache-key: test
shared-key: some-job

- name: Install cargo-sort (from git)
uses: ./
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ unexpected dependencies updates.
- `args`: Additional arguments to pass to `cargo install`.
- `cache-key`: Additional string added to the cache key used to manually
invalidate the cache.
- `shared-key`: A cache key that is used instead of the automatic `job`-based key,
- `shared-key`: A cache key that is used instead of the automatic `job`-based key,
and is stable over multiple jobs.

#### Git parameters
Expand Down
6 changes: 4 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ async function getCacheKey(
process.exit(1);
}

let hashKey = (input.sharedKey || jobId) + runnerOs + runnerArch + (osVersion ?? '');
let hashKey =
(input.sharedKey || jobId) + runnerOs + runnerArch + (osVersion ?? '');

hashKey += input.source.type;
if (input.source.type === 'registry') {
Expand Down

0 comments on commit d2cb6ee

Please sign in to comment.