Skip to content

Commit

Permalink
Update action distribution files
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored May 27, 2024
1 parent fc55169 commit abcc509
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions previous-release/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24951,8 +24951,10 @@ async function run() {
const branch = core.getInput('branch') || process.env.GITHUB_REF_NAME;
const data = JSON.parse(core.getInput('data'));
if (!data[branch]) {
console.log(`No data found for branch ${branch}`);
core.setFailed(`No data found for branch ${branch}`);
core.setOutput('previousRelease', '0');
core.setOutput('previousCommit', '');
core.setOutput('curentRelease', '1');
return;
}
const { c: commit, t: tag } = data[branch];
core.setOutput('previousCommit', commit);
Expand Down

0 comments on commit abcc509

Please sign in to comment.