Configure user and email for Grade Wrapper Workflow

Issue gh-13865
This commit is contained in:
Marcus Da Coregio 2023-10-09 14:10:47 -03:00
parent 11a6346b8e
commit 19ce45a080

View File

@ -13,7 +13,10 @@ jobs:
- name: Set up Git configuration
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: git config --global url."https://unused-username:${TOKEN}@github.com/".insteadOf "https://github.com/"
run: |
git config --global url."https://unused-username:${TOKEN}@github.com/".insteadOf "https://github.com/"
git config --global user.name "$(git --no-pager log --format=format:'%an' -n 1)"
git config --global user.email "$(git --no-pager log --format=format:'%ae' -n 1)"
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 17