Skip to content

Commit 4f3bba3

Browse files
Set config
1 parent 66eaf90 commit 4f3bba3

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/update.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,12 @@ jobs:
7676
key: ${{ secrets.key }} # if run.py requires passwords..etc, set it as secrets
7777
- name: Commit files # transfer the new html files back into the repository
7878
run: |
79-
git config --local user.name "Update"
79+
NAME="${{ secrets.COMMIT_NAME }}"
80+
EMAIL="${{ secrets.COMMIT_EMAIL }}"
81+
git config --local user.name "${NAME:-Update}"
82+
git config --local user.email "${EMAIL:-users.noreply.github.com}"
8083
git add .
81-
git commit -m "Updating the hosts files"
84+
git commit -m "Updating the hosts files" || echo "No changes to commit"
8285
- name: Push changes # push the output folder to your repo
8386
uses: ad-m/github-push-action@master
8487
with:

0 commit comments

Comments
 (0)