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. 🔁
- Automatic Trigger: The bot will run every day at midnight UTC. 🌙
- Manual Trigger: You can manually trigger the workflow from the GitHub Actions interface of your repository. 🖱️
The bot updates myfile.txt
every day with the current date and time. You can modify the file name and the content update logic inside the workflow to suit your needs. 🔄
Feel free to fork the repository and contribute improvements or features. Please follow the standard pull request process. ✨
This project is licensed under the MIT License. 🖤