Change parallel info (#174) #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |