This is an automated email from the ASF dual-hosted git repository.
sjaranowski pushed a commit to branch v4
in repository https://gitbox.apache.org/repos/asf/maven-gh-actions-shared.git
The following commit(s) were added to refs/heads/v4 by this push:
new 55b48f5 Allow to pass config-name for release-drafter
55b48f5 is described below
commit 55b48f5241db7e46bcbe5fb5b8b925ece7c41f63
Author: Slawomir Jaranowski <[email protected]>
AuthorDate: Mon Jan 6 23:49:41 2025 +0100
Allow to pass config-name for release-drafter
needed for multi-branch releases
---
.github/workflows/release-drafter.yml | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/.github/workflows/release-drafter.yml
b/.github/workflows/release-drafter.yml
index 79c8309..f432881 100644
--- a/.github/workflows/release-drafter.yml
+++ b/.github/workflows/release-drafter.yml
@@ -20,6 +20,14 @@
name: Release Drafter
on:
workflow_call:
+ inputs:
+ config-name:
+ description: |
+ If your workflow requires multiple release-drafter configs it be
helpful to override the config-name.
+ The config should still be located inside `.github` as that's where
we are looking for config files.
+ required: false
+ type: string
+ default: 'release-drafter.yml'
jobs:
update_release_draft:
@@ -29,5 +37,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses:
release-drafter/release-drafter@3f0f87098bd6b5c5b9a36d49c41d998ea58f9348 # v6
+ with:
+ config-name: ${{ inputs.config-name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}