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.
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.