diff --git a/gh-actions/github/checkout/action.yml b/gh-actions/github/checkout/action.yml index 9f49cfc1b..43135c9e6 100644 --- a/gh-actions/github/checkout/action.yml +++ b/gh-actions/github/checkout/action.yml @@ -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: @@ -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 }}