AaronSadlerUK / github-tagger

Github action to tag commit with a given version

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Commit tagger

Tags the commit with a given text

Getting Started

To use, create a workflow (eg: .github/workflows/label.yml see Creating a Workflow file) and add a step like 'Tag commit' on the below sample. A token will be needed so the workflow can make calls to GitHub's rest API.

name: "My workflow"

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    
    steps:
    - name: Tag commit
      uses: tvdias/github-tagger@v0.0.1
      with:
        repo-token: "${{ secrets.GITHUB_TOKEN }}"
        tag: "my_tag"

An optional commit sha can be specified to override the default

    steps:
    - name: Tag commit
      uses: tvdias/github-tagger@v0.0.1
      with:
        repo-token: "${{ secrets.GITHUB_TOKEN }}"
        tag: "my_tag"
        commit-sha: abc123

About

Github action to tag commit with a given version

License:MIT License


Languages

Language:JavaScript 73.9%Language:TypeScript 26.1%