Skip to content

Commit

Permalink
Allow master or main as the default branch (#18)
Browse files Browse the repository at this point in the history
* Allow master or main as the default branch

* Building action
  • Loading branch information
cooperbenson-qz authored Dec 14, 2021
1 parent 97d70f2 commit 4267297
Show file tree
Hide file tree
Showing 3 changed files with 8,330 additions and 14 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1754,7 +1754,7 @@ function getApps() {
core.error(e);
}
return responseJson.items.filter(app => {
return (app.spec.source.repoURL.includes(`${github.context.repo.owner}/${github.context.repo.repo}`) && app.spec.source.targetRevision === 'master');
return (app.spec.source.repoURL.includes(`${github.context.repo.owner}/${github.context.repo.repo}`) && (app.spec.source.targetRevision === 'master' || app.spec.source.targetRevision === 'main'));
});
});
}
Expand Down
Loading

0 comments on commit 4267297

Please sign in to comment.