Add create_release_tag.yml workflow for pupmod repos - #43
Open
silug wants to merge 2 commits into
Open
Conversation
Adds a manually-dispatched (workflow_dispatch) GitHub Action that replaces the local release-tagging script: - Must be dispatched from the default branch - Reads the release version from metadata.json and validates it (SemVer format, tag does not already exist, pkg:check_version, pkg:compare_latest_tag, metadata_lint) - Generates the tag annotation from the CHANGELOG via rake pkg:create_tag_changelog - Creates the annotated tag and pushes it, which triggers the tag_deploy.yml release workflow - Pushes with the SIMP_AUTO_GITHUB_TOKEN__REPO_SCOPE PAT because tags pushed with the default GITHUB_TOKEN do not trigger other workflows - Supports a dry_run input that validates and prints the annotation without pushing Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
CHANGELOG.md is frozen (see simp#71); the squash-merge PR title carries this change's history. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
hcaballero2
approved these changes
Aug 5, 2026
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 this does
Adds a new puppetsync-managed GitHub Actions workflow,
create_release_tag.yml, for all pupmod repos, replacing the local shell script currently used to tag module releases.It is a
workflow_dispatchaction that:metadata.jsonand validates it: SemVer format, tag doesn't already exist,rake pkg:check_version,rake pkg:compare_latest_tag, andrake metadata_lint— all before tagging (today these only run intag_deploy.yml, after the tag is already pushed)rake pkg:create_tag_changelog(same as the local script)tag_deploy.ymlrelease pipelinedry_runinput that validates everything and prints the would-be annotation without pushingNotes
SIMP_AUTO_GITHUB_TOKEN__REPO_SCOPE(the same org PATtag_deploy.ymlalready uses to dispatchrelease_rpms.yml), because tags pushed with the defaultGITHUB_TOKENdo not trigger other workflows. It falls back toGITHUB_TOKEN(documented in the header), which still creates the tag but won't firetag_deploy.yml.write, so the push itself is unobstructed; the job also declarespermissions: contents: writeexplicitly.actions/checkout@v7,ruby/setup-ruby@v1with Ruby 3.4.9,PUPPET_VERSION: '~> 8') rather than the older pinning still present in some templates here, so Renovate can manage the versions per-repo after sync.vendor/+Gemfile.locklitter in the working tree, an enforced local-matches-origin default branch (it tags what's actually on GitHub), pre-tag RELENG validation, and a dry-run mode replacing the 5-second Ctrl-C window.🤖 Generated with Claude Code