Closed razgraf closed 1 year ago
Good catch!
I keep the workflow_dispatch
event as a just-in-case feature - it doesn't hurt to be able to run the main GitHub Action workflow manually, e.g. for debugging purposes.
But, as you've pointed out, the current syntax is wrong. It should be updated to this:
on:
workflow_dispatch:
pull_request:
push:
branches:
- "main"
Actually, I think it's just the push
and the workflow_dispatch
that have to stay there.
pull_request
will re-deploy the docs every time we do a PR (which shouldn't happen) and override the official website. For example, right now, the docs.sablier.com deployment is the one from my PR not what's on main
.
Yes, you're right. I'll remove the pull_request
trigger event.
I was also wondering why docs.sablier.com
was using the redesigned version.
As per the
on.workflow_dispatch
documentation it looks like there's nobranches
options for it.The IDE (probably because of the Github Actions extension) is warning about this incorrect configuration. Was there a reason for leaving this here? Maybe it was meant for the
pull_request
/push
triggers?