-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
24 lines (24 loc) · 909 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: GitHub Actions Bot git identity
description: Quick shortcut action for identifying as the GitHub Actions bot through `git config`
inputs:
working-directory:
description: run git config in the specified directory
global:
description: run git config --global instead of git config
branding:
icon: git-commit
color: blue
runs:
using: composite
steps:
- shell: bash
if: ${{ inputs.global == 'true' || inputs.global == 'TRUE' }}
run: >
git config --global user.email 'github-actions[bot]@users.noreply.github.com' &&
git config --global user.name 'github-actions[bot]'
- shell: bash
if: ${{ inputs.global != 'true' && inputs.global != 'TRUE' }}
working-directory: ${{ inputs.working-directory }}
run: >
git config user.email 'github-actions[bot]@users.noreply.github.com' &&
git config user.name 'github-actions[bot]'