From f482534eb2e12657afb98d675dc293d354b4fd84 Mon Sep 17 00:00:00 2001 From: Gabor Boros Date: Thu, 6 Aug 2026 13:00:25 +0400 Subject: [PATCH 1/2] feat: allow to do git commits with a custom user Signed-off-by: Gabor Boros --- .github/workflows/build.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6cf747d..ba72a9e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -74,6 +74,16 @@ on: required: false type: string default: "%Y%m%d-%H%M" + GIT_COMMIT_USER_NAME: + description: "The name of the user used to do commit changes." + required: false + type: string + default: "GitHub Actions" + GIT_COMMIT_USER_EMAIL: + description: "The email address of the user used to do commit changes." + required: false + type: string + default: "actions@github.com" secrets: DOCKERHUB_USERNAME: description: 'DockerHub username for login' @@ -285,8 +295,8 @@ jobs: SERVICE: ${{ inputs.SERVICE }} SCRIPT_PATH: ../picasso/.github/workflows/scripts/dynamic_image_tag.py run: | - git config user.name "GitHub Actions" - git config user.email "actions@github.com" + git config user.name "${{ inputs.GIT_COMMIT_USER_NAME }}" + git config user.email "${{ inputs.GIT_COMMIT_USER_EMAIL }}" git stash git pull origin ${{ inputs.STRAIN_REPOSITORY_BRANCH }} python $SCRIPT_PATH \ From bab504fe935218c38c7c6d994acdb19146172862 Mon Sep 17 00:00:00 2001 From: Gabor Boros Date: Thu, 6 Aug 2026 13:08:32 +0400 Subject: [PATCH 2/2] docs: extend readme Signed-off-by: Gabor Boros --- README.rst | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 5280c80..d156610 100644 --- a/README.rst +++ b/README.rst @@ -150,6 +150,14 @@ Before using the workflow, ensure that you have set up the following configurati - Timestamp format used in the generated image tag. Follows Python’s ``strftime`` syntax. Only used if ``USE_DYNAMIC_IMAGE_TAG`` is enabled. Default is ``%Y%m%d-%H%M`` - string - Input + * - GIT_COMMIT_USER_NAME (Optional): + - The name of the user used to do commit changes. Default is `GitHub Actions` + - string + - Input + * - GIT_COMMIT_USER_EMAIL (Optional): + - The email address of the user used to do commit changes. Default is `actions@github.com` + - string + - Input Private Repository Access (Multiple SSH Keys) ********************************************* @@ -267,4 +275,3 @@ Please do not report security vulnerabilities in public forums. Instead, email t :alt: License .. |status-badge| image:: http://badges.github.io/stability-badges/dist/Status-Maintained-brightgreen.svg - \ No newline at end of file