github action to release and automagically update version and sha #11
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.
This PR adds a new github action workflow:
Usage
Once it's merged you just create a new tag (starting with "v") on master, and the workflow does the rest:
plugins/examples.yaml
krew manifest and commits it to masterSee it in action
I have tested it on my own fork, see the result:
Notes
I was trying to use the action: github.com/stefanzweifel/git-auto-commit-action but it seems
this plugin cannot handle pushing to a different branch. It is triggered by the git tag,
so it will be a "detached head" and than couldn't handle switching to the master branch.
see: action error
So I ended up duck-taping a bunch of git command to implement a safe switch to master.