Skip to content

OoBook/autonomous-tag

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Autonomous Tag Action

Main GitHub release (latest SemVer) GitHub release (latest SemVer) GitHub License

A GitHub action that creates a new tag according to the Conventional Commits.

What's it do?

This action will automatically create a new tag and release for your repository when a pull request is merged to the default branch. It will also create a changelog entry for the new tag and release.

Inputs

Name Description Obligatory  Default
gh-token A GitHub token with repo scope. This is used to create release required
tag Predefined tag optional

Outputs

Name Description
tag The new auto-generated tag
ref The new tag ref

Usage

name: Generate Tag
on:
  push:
    branches:
      - main

permissions:
  contents: write

jobs:
  tag:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: oobook/autonomous-tag@v1
        id: tag-generation
        with:
          gh-token: ${{ github.token }}
      # Instance for using the outputs of the action
      - name: Get Tag Outputs 
        if: ${{ success() && steps.tag-generation.outputs.tag != '' }}
        run: |
          {
            echo 'release_tag<<EOF'
            yarn test 2>&1
            echo EOF
          } >> "$GITHUB_ENV"
        with: 
          release_tag: {{ steps.tag-generation.outputs.tag }}

About

Add new tag to the repository according to conventional commits

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors