A simple compute semver from pull request titles.
uses: duplojs/action-semver
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_BRANCHE: main
REGEXP_PATCH: '^fix'
REGEXP_MINOR: '^feat'
REGEXP_MAJOR: '^break'Required Token github action : GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}.
Required your repository name : GITHUB_REPOSITORY: ${{ github.repository }}.
Required Branche target : GITHUB_BRANCHE: main.
Required Regex wich match with PATCH pull request title : REGEXP_PATCH: '^fix'.
Required Regex wich match with MINOR pull request title : REGEXP_MINOR: '^feat'.
Required Regex wich match with MAJOR pull request title : REGEXP_MAJOR: '^break'.
Optional Number at which it begins patch : PATCH_START_AT: 0 (default 0).
Optional Number at which it begins minor : MINOR_START_AT: 16 (default 0).
Optional Number at which it begins major : MAJOR_START_AT: 20 (default 0).
Optional Output format of computed version : OUTPUT_FORMAT: v{MAJOR}.{MINOR}.{PATCH} (default {MAJOR}.{MINOR}.{PATCH}).
Optional Places a string on top of the pull request stack which increments the counters : CURRENT_PULL_REQUEST_TITLE: ${{ github.event.pull_request.title }}.
Optional Number of pull requests taken per request : PER_PAGE: 10 (default 30).
Computed version is as same format input waht OUTPUT_FORMAT.