Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Commit

Permalink
Make directory default to "."
Browse files Browse the repository at this point in the history
  • Loading branch information
viktigpetterr committed Jul 21, 2021
1 parent 94d8cf0 commit b34096d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ inputs:
directory:
description: 'Directory containing yarn.lock'
required: false
default: './'
default: '.'
runs:
using: 'node12'
main: 'dist/restore/index.js'
Expand Down
2 changes: 1 addition & 1 deletion src/restore.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async function run() {
core.saveState("YARN_CACHE_PATH", cachePath);

const directory = core.getInput("directory");
const hash = md5File.sync(`${directory}yarn.lock`);
const hash = md5File.sync(`${directory}/yarn.lock`);

const primaryKey = `${os}-yarn-cache-${hash}`;
const restoreKey = `${os}-yarn-cache-`;
Expand Down

0 comments on commit b34096d

Please sign in to comment.