Skip to content

Combine the three workflows into one - #8

Merged
2swap merged 1 commit into
2swap:mainfrom
Waffle3z:one-workflow
Aug 4, 2026
Merged

Combine the three workflows into one#8
2swap merged 1 commit into
2swap:mainfrom
Waffle3z:one-workflow

Conversation

@Waffle3z

@Waffle3z Waffle3z commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

One file, two jobs. Everything is validated on pull requests and pushes to main; rendering, publishing and committing happen only on main.

The if on the publish job is load-bearing rather than tidiness. A pull request from a branch in this repository gets whatever permissions the workflow asks for, so without it every such branch would deploy the site and hold a write token. Fork pull requests are stopped separately, by GitHub forcing their token read-only.

Deploying in the same job as the render fixes the site trailing by one push: Pages used to publish the tree at the triggering commit, and the corrected graph.js was committed after that.

Dropping the path filter fixes a quieter one. Both renderers import validate_solution.py, which was not in the old trigger list, so a change to it could alter graph.js with nothing re-rendering.

One file, two jobs. Everything is validated on pull requests and pushes to
main; rendering, publishing and committing happen only on main.

The `if` on the publish job is load-bearing rather than tidiness. A pull
request from a branch in this repository gets whatever permissions the workflow
asks for, so without it every such branch would deploy the site and hold a
write token. Fork pull requests are stopped separately, by GitHub forcing their
token read-only.

Deploying in the same job as the render fixes the site trailing by one push:
Pages used to publish the tree at the triggering commit, and the corrected
graph.js was committed after that.

Dropping the path filter fixes a quieter one. Both renderers import
validate_solution.py, which was not in the old trigger list, so a change to it
could alter graph.js with nothing re-rendering.
@2swap
2swap merged commit 7093900 into 2swap:main Aug 4, 2026
2 checks passed
@Waffle3z
Waffle3z deleted the one-workflow branch August 4, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants