Merge branch 'git-commit-push-action-6294070814-ubuntu-full-remote' i… #3751
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: 35 - Github Config | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
job1: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.ACCESS_TOKEN }} | |
- name: Check logs | |
run: | | |
git log -n 1 --pretty=format:%an # username | |
git log -n 1 --pretty=format:%ae # email | |
git config user.name "$(git log -n 1 --pretty=format:%an)" | |
git config user.email "$(git log -n 1 --pretty=format:%ae)" | |
git config --list | |
# - run: | | |
# date > report.txt | |
# git config user.name "$(git log -n 1 --pretty=format:%an)" | |
# git config user.email "$(git log -n 1 --pretty=format:%ae)" | |
# git add . | |
# git commit -m "Update checkout workflow file" | |
# git push | |