Skip to content

Conversation

@dunhor
Copy link
Member

@dunhor dunhor commented Jan 9, 2026

The Problem

When the run-clang-format workflow runs and pushes changes to a PR branch, the CI workflow is not triggered to cancel/re-run. This is because the formatting workflow uses GITHUB_TOKEN when pushing changes which cannot trigger workflows by design. This means that the CI will appear "blocked" indefinitely until either the PR is closed and re-opened (not ideal) or a new change is pushed to the branch by someone other than the bot. The latter requires that there be new changes to push, which may or may not be the case.

Possible Solutions

The "recommended" solution is to store a PAT as a secret for the repo. All instructions I can find on this are for creating PATs for my profile, which isn't quite what I want... Maybe someone with more GitHub-fu can figure this out.

The alternative approach I'm experimenting with here is to add workflow_dispatch as a trigger for the CI so that we can manually invoke the workflow. NOTE: I'm not yet confident that we can manually run the workflow for PR branches, hence why this is experimental. This unfortunately requires the definition to exist in the master branch before I can test it, though...

@dunhor dunhor merged commit 04ef467 into master Jan 13, 2026
18 checks passed
@dunhor dunhor deleted the dunhor/format-test branch January 14, 2026 17:29
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.

3 participants