Skip to content

Commit

Permalink
Revert "fix: use explicitly main branch when last successful sha was …
Browse files Browse the repository at this point in the history
…not found (#52)" (#58)

This reverts commit 87839d6.
  • Loading branch information
JamesHenry authored Sep 1, 2022
1 parent eae3c65 commit 7fd15c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62840,7 +62840,7 @@ let BASE_SHA;
process.stdout.write('\n');
process.stdout.write(`NOTE: You can instead make this a hard error by setting 'error-on-no-successful-workflow' on the action in your workflow.\n`);

BASE_SHA = execSync(`git rev-parse origin/${mainBranchName}~1`, { encoding: 'utf-8' });
BASE_SHA = execSync(`git rev-parse HEAD~1`, { encoding: 'utf-8' });
core.setOutput('noPreviousBuild', 'true');
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion find-successful-workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ let BASE_SHA;
process.stdout.write('\n');
process.stdout.write(`NOTE: You can instead make this a hard error by setting 'error-on-no-successful-workflow' on the action in your workflow.\n`);

BASE_SHA = execSync(`git rev-parse origin/${mainBranchName}~1`, { encoding: 'utf-8' });
BASE_SHA = execSync(`git rev-parse HEAD~1`, { encoding: 'utf-8' });
core.setOutput('noPreviousBuild', 'true');
}
} else {
Expand Down

0 comments on commit 7fd15c5

Please sign in to comment.