Skip to content
file-text

GitHub Action

Changie Action

v2 Latest version

Changie Action

file-text

Changie Action

Run Changie commands as part of a GitHub action workflow

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Changie Action

uses: miniscruff/changie-action@v2

Learn more about this action in miniscruff/changie-action

Choose a version

GitHub Action for Changie

Run Changie in GitHub actions.

Full inputs and outputs can be seen in the action.yml.

Examples

Generate next release pull request using auto mode

on:
  workflow_dispatch:

jobs:
  generate-pr:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout
      uses: actions/checkout@v3

    - name: Batch changes
      uses: miniscruff/changie-action@v2
      with:
        version: latest
        args: batch auto

    - name: Merge changes
      uses: miniscruff/changie-action@v2
      with:
        version: latest
        args: merge

    - name: Get the latest version
      id: latest
      uses: miniscruff/changie-action@v2
      with:
        version: latest
        args: latest

    - name: Create Pull Request
      uses: peter-evans/create-pull-request@v4
      with:
        title: Release ${{ steps.latest.outputs.output }}
        branch: release/${{ steps.latest.outputs.output }}
        commit-message: Release ${{ steps.latest.outputs.output }}