• Go 86%
  • Shell 8.2%
  • Makefile 3.9%
  • Dockerfile 1.9%
Find a file
Pascal Münst 1a1fc63a95
fix: Switch to github_output (#63)
Switch to github_output
2023-03-11 12:49:28 +01:00
.github/workflows Use PAT in release pipeline 2022-07-31 03:58:14 +02:00
internal/pkg Update Go dependencies 2022-07-31 03:37:01 +02:00
.gitignore Allow tags format to be customized 2019-12-30 17:07:48 +01:00
.golangci.yaml Stricter linting 2019-10-06 16:23:50 +02:00
action.yml Release v1.3.2 2022-07-31 01:59:54 +00:00
action.yml.dist Allow tags format to be customized 2019-12-30 17:07:48 +01:00
CONTRIBUTING.md Write a quick contributing guide 2019-10-06 16:05:54 +02:00
Dockerfile Update Go dependencies 2022-07-31 03:37:01 +02:00
entrypoint.sh fix: Switch to github_output (#63) 2023-03-11 12:49:28 +01:00
go.mod Update Go dependencies 2022-07-31 03:37:01 +02:00
go.sum Update Go dependencies 2022-07-31 03:37:01 +02:00
LICENSE.md Add readme + license 2019-09-28 17:27:37 +02:00
main.go Better error handling for guards and increment 2019-09-29 10:30:02 +02:00
Makefile Update Go dependencies 2022-07-31 03:37:01 +02:00
README.md Update release pipeline to only run on merge 2022-07-31 03:48:39 +02:00

Semver Release Github Action

Automatically create SemVer compliant releases based on PR labels.

Assuming that a PR is tagged with a "semver-compliant" label (patch, minor or major), then this action can create a tag and a GitHub release when it is merged.

Note: to determine the base tag for the increment, this action will try to find the most recent tag complying to SemVer. No additional setup is required.

Inputs

release_branch

Required Branch to tag. Default "master".

release_strategy

Required Release strategy. Default "release" (release: creates a GitHub release ; tag: creates a lightweight tag ; none: computes the next SemVer version but does not create a release or tag).

tag_format

Optional Format used to create tags. Default "v%major%.%minor%.%patch%".

tag

Optional Tag to use. If left undefined, it will be computed using the tags already present in the repository.

Outputs

tag

The newly created tag.

Example usage

# .github/workflows/release.yml
name: Release

on:
  pull_request:
    types: [closed]

jobs:
  build:
    runs-on: ubuntu-latest

    if: github.event.pull_request.merged
    
    steps:
      - name: Tag
        uses: K-Phoen/semver-release-action@master
        with:
          release_branch: master
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

License

This library is under the MIT license.