Only build on pushes to main #5
Loading…
Reference in a new issue
No description provided.
Delete branch "refs/pull/5/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Requested by Moof · project thread
A build takes 20 to 30 minutes, and there is only one runner. Every branch push was building even though only main deploys, so those builds held up main's deploys. Meanwhile, each newer push to main cancelled the run before it, so tonight no deploy finished.
With this change, the workflow runs only on pushes to
main, onworkflow_dispatchand onworkflow_call. A branch can still be built by hand with "Run workflow". Theifon the deploy job stays, so a manual run on a branch builds without deploying.Forgejo reads the workflow from the pushed commit, so pushing this branch shouldn't start a build of its own.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Bwekd9qi3u7oYcMtUGthAK