Skip to content

Commit 7621993

Browse files
committed
fix: add tag input to changelog workflow for manual re-runs
Made-with: Cursor
1 parent fbe9571 commit 7621993

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/changelog.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
tags:
66
- "v*"
77
workflow_dispatch:
8+
inputs:
9+
tag:
10+
description: "Tag to generate changelog for (e.g. v0.4.0)"
11+
required: false
12+
type: string
813

914
permissions:
1015
contents: write
@@ -23,7 +28,7 @@ jobs:
2328
uses: orhun/git-cliff-action@v4
2429
with:
2530
config: cliff.toml
26-
args: --output CHANGELOG.md --tag "${{ github.ref_name }}"
31+
args: --output CHANGELOG.md --tag "${{ github.event.inputs.tag || github.ref_name }}"
2732
env:
2833
GITHUB_REPO: ${{ github.repository }}
2934

@@ -32,6 +37,6 @@ jobs:
3237
git config user.name "github-actions[bot]"
3338
git config user.email "github-actions[bot]@users.noreply.github.com"
3439
git add CHANGELOG.md
35-
git diff --cached --quiet || git commit -m "docs: update CHANGELOG.md for ${{ github.ref_name }}"
40+
git diff --cached --quiet || git commit -m "docs: update CHANGELOG.md for ${{ github.event.inputs.tag || github.ref_name }}"
3641
git push
3742
shell: bash

0 commit comments

Comments
 (0)