Skip to content

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

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]+"
    
    permissions:
      contents: write
    
    jobs:
      build:
        name: Make a vM.m.P tag
        runs-on: ubuntu-latest
        steps:
          - name: Checkout repository
            uses: actions/checkout@v5
            with:
              persist-credentials: false
    
          - name: Make go version tag
            uses: senzing-factory/github-action-make-go-tag@v2
            with:
              actor: ${{ secrets.GITHUB_ACTOR }}
              github_token: ${{ secrets.GITHUB_TOKEN }}
              gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
              gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}

References

  1. GitHub workflow
    1. Documentation
    2. GitHub Actions

About

From the Semantic Version, create a v0.0.0 tag for the Go module version

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages