Skip to content

Autonomous Tag

Actions

About

Automatically create tags according to conventional commits
v1.3.1
Latest
Star (0)

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 }}

Autonomous Tag is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Automatically create tags according to conventional commits
v1.3.1
Latest

Autonomous Tag is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.