Skip to content

fix: remove me-south-1 from release pipeline (#691) #3

fix: remove me-south-1 from release pipeline (#691)

fix: remove me-south-1 from release pipeline (#691) #3

Workflow file for this run

name: Changelog
on:
push:
tags:
- "v*"
workflow_dispatch:
inputs:
version:
description: "Version tag to generate changelog for (e.g. v1.0.0)"
required: true
type: string
permissions:
contents: write
jobs:
changelog:
name: Generate Changelog
runs-on: ubuntu-latest
env:
VERSION_TAG: ${{ inputs.version || github.ref_name }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate changelog
uses: orhun/git-cliff-action@v4
id: git-cliff
with:
config: cliff.toml
args: --verbose --tag ${{ env.VERSION_TAG }}
env:
OUTPUT: CHANGELOG.md
GITHUB_REPO: ${{ github.repository }}
- name: Commit changelog
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add CHANGELOG.md
git commit -m "chore: update changelog for ${{ env.VERSION_TAG }}" || true
git push origin HEAD:main
- name: Create/update GitHub release body
uses: orhun/git-cliff-action@v4
with:
config: cliff.toml
args: --verbose --latest --strip header
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPO: ${{ github.repository }}