Skip to content

Commit

Permalink
Add auto-commit action
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorKowalczyk authored Nov 13, 2023
1 parent 38555d2 commit b2fae36
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/updateReadme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Update Readme
on:
schedule:
- cron: "0 * * * *"
workflow_dispatch:

jobs:
run-bot:
Expand Down Expand Up @@ -30,11 +31,9 @@ jobs:
env:
TOP_GG_TOKEN: ${{ secrets.TOP_GG_TOKEN }}
- name: ☑️ Commit Changes
run: |
if [[ "$(git status --porcelain)" != "" ]]; then
git config user.name binary-blazer
git config user.email [email protected]
git add .
git commit -m "[➡️] Update Readme"
git push -f
fi
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "[➡️] Update Readme"
branch: ${{ github.head_ref }}
commit_user_name: binary-blazer
commit_user_email: [email protected]

0 comments on commit b2fae36

Please sign in to comment.