Skip to content

Commit

Permalink
fix: set commit output
Browse files Browse the repository at this point in the history
  • Loading branch information
qoomon committed Nov 1, 2024
1 parent 50713b3 commit cba1988
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
1 change: 1 addition & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32706,6 +32706,7 @@ const action = () => run(async () => {
skipEmpty: getInput('skip-empty') === 'true',
};
process.chdir(input.workingDirectory);
core.setOutput('commit', 0);
const cacheDetails = await getCacheDetails();
console.log('cacheDetails', cacheDetails);
if (cacheDetails.files.length === 0) {
Expand Down
2 changes: 2 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export const action = () => run(async () => {

process.chdir(input.workingDirectory)

core.setOutput('commit', 0)

const cacheDetails = await getCacheDetails()
console.log('cacheDetails', cacheDetails)
if (cacheDetails.files.length === 0) {
Expand Down
23 changes: 12 additions & 11 deletions package-lock.json

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

0 comments on commit cba1988

Please sign in to comment.