Remove PR trigger from template GH action workflow #4
Labels
gha 🤖
GitHub Action
solved but not yet published
This issue is resolved, but not published on SSC yet, nor merged to main
adodown/src/ado/templates/ad-build_adodown_site.yaml
Lines 1 to 5 in 4e9ab12
I suggest changing this to:
A merge of a PR is considered a push. So the action will be triggered when a PR is merged to
main
/master
.Otherwise the action will be triggered when a PR towards
main
/master
is opened, and when a branch with an open PR towardsmain
/master
is updated. While technically not an issue, it is redundant, as in those cases nothing has changed onmain
/master
where the action reads to, so it will never lead to any changes on thegh-pages
branch. Since GH actions are free on public repos, this is not an issue in most cases, but if, for example, the build fails, you will get an error notification each time you update an open PR.So all-in-all, I would say it is cleaner to not have a trigger for PRs. What do you think @arthur-shaw ?
The text was updated successfully, but these errors were encountered: