The Git Commit Bot automates daily commits to your repository. It runs a scheduled GitHub Actions workflow that updates a file in your repository every day at midnight (UTC). This bot ensures that your repository gets a daily update, making it perfect for automating content generation, logging, or any repetitive tasks that require regular commits. π
- Automatic daily commits: Runs every day at midnight UTC. β°
- Manual triggering: Can also be triggered manually from the GitHub Actions interface. π
- Customizable file updates: You can configure the file content to be updated on each run. βοΈ
- Scheduled Run: The workflow runs automatically every day at midnight UTC, or can be triggered manually. π
- Checkout Repository: The repository is checked out to the runner. π
- Set Up Git: Git is configured with a username and email for committing. π§βπ»
- Update File: A file (
myfile.txt
) is updated with the current date and time. π - Commit Changes: The changes are committed to the repository with a message containing the timestamp. π
- Push Changes: The changes are pushed to the
main
branch. π
- A GitHub repository. π
- GitHub Actions enabled for your repository. βοΈ
- Create a new repository or navigate to an existing one. π
- Add the
.github/workflows/auto_commit.yml
file to your repository with the content provided. π - Ensure that your repository has a file (e.g.,
myfile.txt
) that the bot will update. π - Commit the workflow file to your repository. πΎ
- The bot will automatically run daily or can be triggered manually. π