Skip to content

Commit

Permalink
gh-actions/github/checkout: Add committer config (#897)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Northey <ryan@synca.io>
  • Loading branch information
phlax committed Oct 26, 2023
1 parent 2b6c4bc commit ba55a4e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions gh-actions/github/checkout/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,18 @@ inputs:
type: string
app_key:
type: string
committer-name:
type: string
default:
committer-email:
type: string
default:

outputs:
token:
value: ${{ steps.appauth.outputs.token }}


runs:
using: composite
steps:
Expand All @@ -36,3 +43,11 @@ runs:
- uses: actions/checkout@v4
name: Checkout repository
with: ${{ fromJSON(steps.config.outputs.value) }}
- name: Configure committer
if: ${{ committer-name && committer-email }}
run: |
git config --global user.name $COMMITTER_NAME
git config --global user.email $COMMITTER_EMAIL
env:
COMMITTER_NAME: ${{ committer-name }}
COMMITTER_EMAIL: ${{ committer-email }}

0 comments on commit ba55a4e

Please sign in to comment.