Skip to content

(feat): improve workflows (sync-issues main bypass + optional manual publish) - #28

Merged
c-vigo merged 8 commits into
mainfrom
dev
Jan 28, 2026
Merged

c-vigo merged 8 commits into
mainfrom
dev

Conversation

@c-vigo

@c-vigo c-vigo commented Jan 28, 2026

Copy link
Copy Markdown
Contributor

Description

Improve the GitHub Actions workflows:

  • sync-issues.yml: can push updates even when main is protected (PR-only), and supports a user-specified target branch on workflow_dispatch.
  • publish-container-image.yml: manual runs can optionally publish images/manifests (default remains “test only”).

Related Issue(s)

Closes #

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • Test updates

Changes Made

  • Workflow manual target branch: add workflow_dispatch.inputs.target-branch so a manual run can explicitly commit to main/dev.
  • Branch protection bypass: generate a GitHub App installation token via actions/create-github-app-token@v2 and use it for the commit step (so it can bypass rules when the App is configured in the bypass list).
  • Commit action update: bump vig-os/commit-action from v0.1.1 to v0.1.3 and pass the expected env (GH_TOKEN, TARGET_BRANCH).
  • Manual publish toggle for image workflow: add workflow_dispatch.inputs.publish (default false) so manual runs can either:
    • run build+tests only (default), or
    • run build+tests+publish+manifest when publish=true.
  • (Sync outputs): the workflow run also generated/updated .github_data/issues/… and .github_data/pull-requests/… content.

Testing

  • Tests pass locally (just test)
  • Manual testing performed (describe below)

Manual Testing Details

  • Trigger Sync Issues and PRs via workflow_dispatch with target-branch=main and confirm it:
    • checks out main
    • commits via the GitHub App identity
    • writes to main without tripping “PR required” rules (when the App is allowed to bypass)
  • Trigger Publish Container Image via workflow_dispatch:
    • with publish=false (default): runs build+tests, does not push images/manifests
    • with publish=true: runs build+tests and publishes images/manifests

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (README.md, CONTRIBUTE.md, etc.)
  • I have updated the CHANGELOG.md in the [Unreleased] section
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

  • Repo settings prerequisite: the GitHub App used here must be installed on the repo and explicitly allowed to bypass the relevant branch protection / ruleset.

@c-vigo c-vigo self-assigned this Jan 28, 2026
Signed-off-by: Carlos Vigo <[email protected]>
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.

1 participant