🚦 [Feature]: Release stable modules on pushes to main#411
Draft
Marius Storhaug (MariusStorhaug) wants to merge 10 commits into
Draft
🚦 [Feature]: Release stable modules on pushes to main#411Marius Storhaug (MariusStorhaug) wants to merge 10 commits into
Marius Storhaug (MariusStorhaug) wants to merge 10 commits into
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Super-linter summary
All files and directories linted successfully For more information, see the GitHub Actions workflow run Powered by Super-linter |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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.
Summary
Moves stable module releases from merged
pull_requestevents topushevents on the default branch, while preserving prereleases for open labeled PRs and cleanup-only behavior for closed PRs.Closes #390.
Changes
GET /repos/{owner}/{repo}/commits/{sha}/pulls.Publish.Module.AllowDirectPushRelease: trueto explicitly allow an unassociated default-branch push; normal version-label/auto-patching rules still apply.workflow_callinputs and secrets.Migration guidance
Caller workflows should add a
pushtrigger for their default branch and retain the existingpull_requesttrigger for open/update and closed events. Stable publishing now occurs in the push-triggered run, not the merged-PR closed run.Callers with event-specific job conditions or run names must avoid assuming
github.event.pull_requestexists during push runs. Ensure the calling workflow grantscontents: writefor stable publication andpull-requests: writewhere PR comments or cleanup are enabled. No reusable workflow input or secret changes are required.Direct pushes without an associated merged PR are safe by default: build/test stages run, but no stable release is published. Only repositories that intentionally support this path should opt in with:
Validation
mainresolves exact merged PR metadata and routes a stable release.Follow-up
After this merges, #84 can be closed as a duplicate of #390. Issue #38 remains the adjacent broader workflow/permission architecture effort.