Skip to content

Commit

Permalink
permit empty branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ckotzbauer committed Aug 4, 2021
1 parent 3cdffc4 commit cb02d9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async function run(): Promise<void> {
core.info(`Run Branch: ${run.head_branch}`);
core.info(`Wanted branch: ${inputs.branch}`);

if (sha != run.head_sha && run.head_branch === inputs.branch) {
if (sha != run.head_sha && (!inputs.branch || run.head_branch === inputs.branch)) {
core.info(`Using extracted sha ${run.head_sha} from run ${run.html_url} instead of triggering sha ${sha}.`);
sha = run.head_sha;
}
Expand Down

0 comments on commit cb02d9a

Please sign in to comment.