Skip to content

Commit

Permalink
Merge pull request #3 from typst-community/fix-relative-action
Browse files Browse the repository at this point in the history
Fix relative action
  • Loading branch information
jcbhmr authored Feb 6, 2024
2 parents 2012fe5 + 0f860c5 commit e7668c0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 18 deletions.
10 changes: 2 additions & 8 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,9 @@ inputs:
outputs:
hayagriva-version:
description: The version of Hayagriva that was installed. This will be something like '1.5.1' or similar.
value: ${{ steps.setup-hayagriva.outputs.hayagriva-version }}
cache-hit:
description: Whether or not Hayagriva was restored from the runner's cache or download anew.
value: ${{ steps.setup-hayagriva.outputs.cache-hit }}

runs:
using: composite
steps:
- uses: cargo-bins/cargo-binstall@main
- id: setup-hayagriva
uses: ./setup-hayagriva
with: ${{ inputs }}
using: node20
main: dist/main.js
8 changes: 0 additions & 8 deletions setup-hayagriva/action.yml

This file was deleted.

4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ if (!found) {

await $({
stdio: "inherit",
})`cargo binstall hayagriva --version ${version} --force -y --install-path ${cacheDir} --features cli`;
})`cargo install hayagriva --features cli --version ${version} --force --root ${cacheDir}`;

if (workflowCache) {
await cache.saveCache([cacheDir], primaryKey);
Expand All @@ -67,7 +67,7 @@ if (!found) {
found = await tc.cacheDir(cacheDir, "hayagriva", version);
}
core.setOutput("cache-hit", cacheHit);
core.addPath(found);
core.addPath(join(found, "bin"));
core.setOutput("hayagriva-version", version);
core.info(`✅ hayagriva v${version} installed!`);

Expand Down

0 comments on commit e7668c0

Please sign in to comment.