add workflow for automatic tag creation #364
Merged
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.ac
and creates a new tag for releases. It will be triggered wheneverconfigure.ac
is modified but will not overwrite previously created tags. The grep command will match bothxxx.xx.xx
andxxx.xx
style 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 distcheck
passes