Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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 \
Expand Down
9 changes: 8 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*********************************************
Expand Down Expand Up @@ -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