Skip to content

Commit f0b1b94

Browse files
committed
build: improve release template
1 parent 152702e commit f0b1b94

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ categories:
1313
commit-keywords: ["docs", "build", "style", "refactor"]
1414

1515
change-template: "- {title} (@{author})"
16-
change-title-escapes: true
16+
change-title-escapes: "true"
1717

1818
template: |
1919
# IDDEFIX v$NEXT_PATCH_VERSION

.github/workflows/release-drafter.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,24 @@ on:
44
workflow_dispatch:
55
inputs:
66
version:
7-
description: 'Version tag for the release (e.g., v0.1.0)'
7+
description: 'Optional version tag for the release (e.g., v0.1.2)'
88
required: false
99
publish:
10-
description: 'Publish release (true) or just draft (false)?'
10+
description: 'Publish release immediately? (true/false)'
1111
required: false
1212
default: 'false'
1313

1414
jobs:
1515
update_release_draft:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: release-drafter/release-drafter@v6
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Run Release Drafter
22+
uses: release-drafter/release-drafter@v6
1923
env:
2024
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2125
with:
22-
version: ${{ github.event.inputs.version }}
23-
publish: ${{ github.event.inputs.publish }}
26+
version: ${{ github.event.inputs.version || '' }}
27+
publish: ${{ github.event.inputs.publish || 'false' }}

0 commit comments

Comments
 (0)