This is an automated email from the ASF dual-hosted git repository.
pkarwasz pushed a commit to branch feat/dependabot-add-changelog
in repository https://gitbox.apache.org/repos/asf/logging-parent.git
The following commit(s) were added to refs/heads/feat/dependabot-add-changelog
by this push:
new 0b1a686 feat: add `user_name` and `user_email` parameters
0b1a686 is described below
commit 0b1a686a6d33d444b568185c1bfee175776943e3
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Mon Jun 16 17:20:11 2025 +0200
feat: add `user_name` and `user_email` parameters
---
.github/workflows/process-dependabot-reusable.yaml | 25 +++++++++++-----------
1 file changed, 12 insertions(+), 13 deletions(-)
diff --git a/.github/workflows/process-dependabot-reusable.yaml
b/.github/workflows/process-dependabot-reusable.yaml
index ac2a2c6..04ff162 100644
--- a/.github/workflows/process-dependabot-reusable.yaml
+++ b/.github/workflows/process-dependabot-reusable.yaml
@@ -20,6 +20,14 @@ name: Dependabot Process PR
on:
workflow_call:
inputs:
+ user_name:
+ description: The name of the user to use for the commit
+ default: 'ASF Logging Services RM'
+ type: string
+ user_email:
+ description: The email of the user to use for the commit
+ default: '[email protected]'
+ type: string
ref:
description: The branch, tag or SHA to checkout
default: ${{ github.ref }}
@@ -58,17 +66,6 @@ jobs:
steps:
- - name: Debug
- shell: bash
- run: |
- echo "Actor: ${{ github.actor }}"
- echo "Repository: ${{ github.repository }}"
- echo "Ref: ${{ inputs.ref }}"
- echo "Action sha: ${{ github.action_sha }}"
- echo "Action ref: ${{ github.action_ref }}"
- echo "Workflow sha: ${{ github.workflow_sha }}"
- echo "Workflow ref: ${{ github.workflow_ref }}"
-
- name: Check out repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
with:
@@ -106,10 +103,12 @@ jobs:
&& format('PR #{0}',
steps.dependencies.outputs.pull-request-number)
|| format('commit {0}', github.sha)
}}
+ USER_NAME: ${{ inputs.user_name }}
+ USER_EMAIL: ${{ inputs.user_email }}
run: |
git add src/changelog
- git config user.name "ASF Logging Services RM"
- git config user.email [email protected]
+ git config user.name "$USER_NAME"
+ git config user.email "$USER_EMAIL"
git commit -S -m "$COMMIT_MSG"
git push origin