ci: allow manual C-header generation on any branch - #392
Open
alessandroferraioli95 wants to merge 1 commit into
Open
alessandroferraioli95 wants to merge 1 commit into
alessandroferraioli95 wants to merge 1 commit into
Conversation
Add a workflow_dispatch trigger to "Test and deploy" so the C-header generation can be run manually from the Actions UI (or `gh workflow run`) against any branch, instead of only on master pushes. - Relax the deploy job gate to also run on workflow_dispatch. - Derive the target c_library branch from the dispatched branch name (github.ref_name), with an optional `clibrary_branch` input override. - update_c_library.sh now reads CLIBRARY_GIT_BRANCHNAME from the env (default master); for a non-master target it creates/resets the branch on top of the freshly-cloned default branch and force-pushes the regenerated snapshot, so master pushes keep their existing behavior. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
alessandroferraioli95
force-pushed
the
ci-dispatch-c-headers
branch
from
July 16, 2026 09:28
3749a7e to
493510a
Compare
alessandroferraioli95
changed the base branch from
pr-manual_control_status
to
master
July 16, 2026 09:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a
workflow_dispatchtrigger to the Test and deploy workflow so the C-header generation can be run manually against any branch — not only onmasterpushes — and pushes the result to a matching branch inAuterion/c_library_v2andAuterion/c_library_v1.Changes
.github/workflows/test_and_deploy.ymlworkflow_dispatchtrigger with an optionalclibrary_branchinput.github.ref == 'refs/heads/master' || github.event_name == 'workflow_dispatch'.CLIBRARY_GIT_BRANCHNAME: ${{ inputs.clibrary_branch || github.ref_name }}.scripts/update_c_library.shCLIBRARY_GIT_BRANCHNAMEfrom the environment (defaults tomaster).git checkout -B <branch>on top of the freshly-cloned c_library default branch, then force-pushes the regenerated snapshot. Master behavior is unchanged.update_generated_repos.shis untouched — it already clones the c_library repos from their default branch, which is the correct base for the snapshot.How to use (after this is on the default branch)
pr-manual_control_status).clibrary_branchto override the target branch name (defaults to the selected branch).c_library_v2andc_library_v1.Notes
🤖 Generated with Claude Code