add workflow for automatic tag creation#364
Merged
mlee03 merged 3 commits intoNOAA-GFDL:mainfrom Jun 23, 2025
Merged
Conversation
Contributor
8 tasks
Contributor
Author
|
@ceblanton I added the |
Contributor
|
@rem1776 Yes, we want both, the |
mlee03
approved these changes
Jun 23, 2025
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.
Description
adds a workflow that grabs the version number from the
configure.acand creates a new tag for releases. It will be triggered wheneverconfigure.acis modified but will not overwrite previously created tags. The grep command will match bothxxx.xx.xxandxxx.xxstyle version numbers. End result basically ensures each new version number committed to main will have a corresponding tag.Since my other PR is triggered by a tag (#357) and creates the release draft, once these both go in we'd have a (almost) fully automated release process. A PR containing a change to the version number would be merged in to main, and then we would just have to wait for the actions to run and manually release the created draft.
This kind of thing has potential for script injections, so I used a fairly strict grep command and called github's api directly (rather than using normal git commands). Hopefully that will mitigate any dangers, but any opinions are appreciated.
How Has This Been Tested?
my forks main branch
Checklist:
make distcheckpasses