autosuite / autolog

GitHub Action that automatically creates and stages a CHANGELOG.md file, preserving human-made changes.
Apache License 2.0
2 stars 0 forks source link
action changelog cicd

Autolog

Summary Badge
Release Stability Autobadge Release Stability
Latest Release Autobadge Latest Release
Code Quality Maintainability
Code Coverage Test Coverage

Introduction

Wrapper for github-changelog-generator that allows human-readable changelog sections to be kept to automatically prepare versions based on the most recent SemVer milestone, and to add to a pipeline that performs auto addition, committing, and pushing of changes.

Rationale

The github-changelog-generator is a fantastic tool and this tool utilises and extends it. Autolog:

Usage

Note: you must be using GitHub Milestones as one per version in order for Autolog to work. Additionally, you must fetch all the commits/up to the tagged commit when checking out (see below).

Simply add this job to a workflow as part of the full Autosuite set or with just the following:

name: my-workflow

on: [push]

jobs:
  autocommit:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2.0.0
        with:
          fetch-depth: 0
      - uses: autosuite/autolog@master
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          github-repository: ${{ github.repository }}
      - uses: autosuite/autocommit@master
      - uses: ad-m/github-push-action@master
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}

Configuration

You can see all configuration in the action.yml file.

Variable Value Example Default Required?
github-token The GitHub access token. ${{ secrets.GITHUB_TOKEN }} N/A Yes.
github-repository group_or_user/repo. ${{ github.repository }} N/A Yes.