senzing-factory / github-action-make-go-tag

From the Semantic Version, create a v0.0.0 tag for the Go module version
Apache License 2.0
0 stars 0 forks source link
senzing-factory

github-action-make-go-tag

Synopsis

From a Semantic Version, create a Go module tag.

Overview

This repository is a GitHub Workflow that makes a tag in the format "vM.m.P", which is a Semantic Version prefixed with "v", whenever a semantically versioned tag is created.

Note: As itself, "v0.0.0" is not a semantic version. See Is “v1.2.3” a semantic version?

Use

  1. To use, create a .github/workflows/make-go-tag.yaml file with the following contents:

    name: make-go-tag.yaml
    
    on:
      push:
        tags:
          - "[0-9]+.[0-9]+.[0-9]+"
    
    jobs:
      build:
        name: Make a vM.m.P tag
        runs-on: ubuntu-latest
        steps:
          - name: Checkout repository
            uses: actions/checkout@v3
          - name: Make go version tag
            uses: senzing-factory/github-action-make-go-tag@v2

References

  1. GitHub workflow
    1. Documentation
    2. GitHub actions