Creating a new release using the labels from the Pull Requests
Add a one of major
, minor
or path
label to your PR and merge it.
- Major - reset
minor
andpatch
- Minor - reset
patch
Examples
With default settings you will get release: v0.0.1
Result: release with tag and name v0.4.11
Result: release with tag and name v0.5.0
Result: release with tag and name v1.0.0
There are 3 labels will be created or updated (comply with semver):
- Major
- Minor
- Patch
If your repository does not contain any tags, the next one after the default_tag
will be created:
Default: v0.0.0
-> first tag v0.0.1
github-token
- GitHub Token. Default${{ github.token }}
pr-number
- GitHub Token. Default${{ github.event.number }}
default-tag
- GitHub Token. Default0.0.0
prefix
- Tag prefix. Defaultv
name: 'Release'
on:
pull_request:
types: [closed]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: flaticols/[email protected]
name: 'Release'
on:
pull_request:
types: [closed]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
github-token: 'My token'
pr-number: 10
default-tag: '0.1.0'
prefix: "ver"
- uses: flaticols/[email protected]
go run . create -o flaticols -r tagger -t $(gh auth token)
package main
import C "github.com/flaticols/tagger/commands"
func main() {
root := cobra.Command{}
root.AddCommand(C.CreateCommand())
_, err := root.ExecuteC()
if err != nil {
return
}
}