Skip to content

Commit

Permalink
Merge pull request anothrNick#10 from anothrNick/tags-endpoint
Browse files Browse the repository at this point in the history
Tags endpoint
  • Loading branch information
anothrNick authored Aug 29, 2019
2 parents 22331db + 66a812e commit 63aa912
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ Be sure to set the *REPO_OWNER* environment variable so that the action tags you

Any commit message with `#major`, `#minor`, or `patch` will trigger the respective version bump.

### Workflow

* Add this action to your repo
* Commit some changes
* Either push to master or open a PR
* On push(or merge) to master, Action will:
* Get latest tag
* Bump tag with minor version unless any commit message contains `#major` or `#patch`
* Pushes tag to github

### Credits

[fsaintjacques/semver-tool](https://github.com/fsaintjacques/semver-tool)
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ curl -0 -v -X POST https://api.github.com/repos/$REPO_OWNER/$repo/git/refs \
-d @- << EOF
{
"ref": "refs/heads/$new",
"ref": "refs/tags/$new",
"sha": "$commit"
}
EOF

0 comments on commit 63aa912

Please sign in to comment.