mirror of
https://github.com/DeterminateSystems/update-flake-lock.git
synced 2024-12-23 13:32:07 +01:00
Allow to customize git author/committer name+email
This commit is contained in:
parent
0ad9a55048
commit
5e50e4bcfb
1 changed files with 20 additions and 4 deletions
24
action.yml
24
action.yml
|
@ -53,6 +53,22 @@ inputs:
|
||||||
description: 'A comma or newline separated list of labels to set on the Pull Request to be created'
|
description: 'A comma or newline separated list of labels to set on the Pull Request to be created'
|
||||||
required: false
|
required: false
|
||||||
default: ''
|
default: ''
|
||||||
|
git-author-name:
|
||||||
|
description: 'Author name used for commit. Only used if sign-commits is false.'
|
||||||
|
required: false
|
||||||
|
default: 'github-actions[bot]'
|
||||||
|
git-author-email:
|
||||||
|
description: 'Author email used for commit. Only used if sign-commits is false.'
|
||||||
|
required: false
|
||||||
|
default: 'github-actions[bot]@users.noreply.github.com>'
|
||||||
|
git-committer-name:
|
||||||
|
description: 'Committer name used for commit. Only used if sign-commits is false.'
|
||||||
|
required: false
|
||||||
|
default: 'github-actions[bot]'
|
||||||
|
git-committer-email:
|
||||||
|
description: 'Committer email used for commit. Only used if sign-commits is false.'
|
||||||
|
required: false
|
||||||
|
default: 'github-actions[bot]@users.noreply.github.com>'
|
||||||
sign-commits:
|
sign-commits:
|
||||||
description: 'Set to true if the action should sign the commit with GPG'
|
description: 'Set to true if the action should sign the commit with GPG'
|
||||||
required: false
|
required: false
|
||||||
|
@ -104,10 +120,10 @@ runs:
|
||||||
if: ${{ inputs.sign-commits != 'true' }}
|
if: ${{ inputs.sign-commits != 'true' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo "GIT_AUTHOR_NAME=github-actions[bot]" >> $GITHUB_ENV
|
echo "GIT_AUTHOR_NAME=${{ inputs.git-author-name }}" >> $GITHUB_ENV
|
||||||
echo "GIT_AUTHOR_EMAIL=<github-actions[bot]@users.noreply.github.com>" >> $GITHUB_ENV
|
echo "GIT_AUTHOR_EMAIL=${{ inputs.git-author-email }}" >> $GITHUB_ENV
|
||||||
echo "GIT_COMMITTER_NAME=github-actions[bot]" >> $GITHUB_ENV
|
echo "GIT_COMMITTER_NAME=${{ inputs.git-committer-name }}" >> $GITHUB_ENV
|
||||||
echo "GIT_COMMITTER_EMAIL=<github-actions[bot]@users.noreply.github.com>" >> $GITHUB_ENV
|
echo "GIT_COMMITTER_EMAIL=${{ inputs.git-committer-email }}" >> $GITHUB_ENV
|
||||||
- name: Run update-flake-lock.sh
|
- name: Run update-flake-lock.sh
|
||||||
run: $GITHUB_ACTION_PATH/update-flake-lock.sh
|
run: $GITHUB_ACTION_PATH/update-flake-lock.sh
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
Loading…
Reference in a new issue