-
Notifications
You must be signed in to change notification settings - Fork 75
30 lines (28 loc) · 1.03 KB
/
empty-commiter.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
25
26
27
28
29
30
name: empty-commiter
on:
push:
jobs:
commit:
runs-on: ubuntu-latest
env:
COMMIT_AUTHOR: ${{ github.event.head_commit.author.username }}
if: github.repository_owner == 'LazerTechnologies'
steps:
- name: checkout
uses: actions/checkout@v2.3.1
with:
submodules: recursive
fetch-depth: 0
token: ${{ secrets.PAT }}
- name: script
run: |
echo "COMMIT Author: $COMMIT_AUTHOR"
- name: empty commit
if: env.COMMIT_AUTHOR == 'wilsoncusack' || env.COMMIT_AUTHOR == 'lukasrosario' || env.COMMIT_AUTHOR == 'mdehoog' || env.COMMIT_AUTHOR == 'jessepollak' || env.COMMIT_AUTHOR == 'arpitsrivastava-cb' || env.COMMIT_AUTHOR == 'arpit2438735' || env.COMMIT_AUTHOR == 'anirud-samala'
run: |
git config user.name "Azim Ahmed"
git config user.email "ximxim@users.noreply.github.com"
git commit --allow-empty -m "empty commit"
git push origin "${GITHUB_REF}"
env:
GITHUB_TOKEN: ${{ secrets.PAT }}