Automated GitHub Action workflow for daily monitoring of commit activity across all associated repositories.
It will auto check all your repositories if there is any new commit today (default is 00:00 - 23:55).
If not, it will auto commit in dummy.txt
file and push to the repository.
- Auto commit and push to the repository if there is no commit in your all repos today.
- Support configuration.
- Default is China time zone, you can change by yourself.
- Clone this repo.
- Generate a new personal access token (
PAT
) with therepo
scope. - In the repository settings.
- Find the
Security
tab in the left. - Go to Secrets and variables.
- Click Actions.
- In this page, click 'New repository secret'.
- Add a new secret with the name
TOKEN
and the value of thePAT
generated in step 2. - You can use another name you want, but you need to change the name
${{ secrets.TOKEN }}
in the file .github/workflows/auto-commit.yml.
- Find the
You can change the configuration by yourself.
- Change the scheduling time on
Schedule
, the default is50 15 * * *
(UTC, every day at 23:50 in China time). - Change the
email
andname
information onSet up Git
step in .github/workflows/auto-commit.yml. - Change
date_today
,time_start
,time_end
,repo
andcommit_message
on the last step.