Skip to content

OoBook/autonomous-release

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 Release

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

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

What's it do?

This action will automatically create a new release for your repository when a tag is sent as parameter or a tag push event but it must conform on the Semantic versioning.

Inputs

Name Description Obligatory  Default
create Run mode of the action optional false
gh-token A GitHub token with repo scope. This is used to create release required
tag It's required to use in events except the tag push optional
create It's required to use in events except the tag push optional true

Outputs

Name Description
body The generated release body with the commits
release-id If release is created, it gives the release ref id
release-url If release is created, it gives the release html url

Usage

name: Release

on:
  push:
    tags:
      - v*

permissions:
  contents: write

jobs:
  tag:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: oobook/autonomous-release@v1
        id: release-generation
        with:
          gh-token: ${{ github.token }}
name: Release

on:
  push:
    branches:
      - main
    tags-ignore:
      - v*

permissions:
  contents: write
  
jobs:
  test:
    runs-on: ubuntu-latest
    name: Test
    steps:
      - name: Checkout
        uses: actions/checkout@v4
      - name: Tag
      - uses: oobook/autonomous-tag
        id: tag-generation
        with:
          gh_token: ${{ secrets.GITHUB_TOKEN }}
      - name: Release
        uses: oobook/autonomous-release@v1
        with:
          gh_token: ${{ secrets.GITHUB_TOKEN }}
          tag: "${{ steps.tag-generation.outputs.tag }}"
          prerelease: true

About

Create a new release with the last tag

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors