Skip to content

This GitHub Action automates daily commits to your repository at midnight (UTC). Ideal for continuous content updates, logging, or maintaining an active commit history, the Git Commit Bot ensures your repository consistently receives a daily update, simplifying repetitive tasks and keeping your project fresh.

Notifications You must be signed in to change notification settings

cbeAbishek/Auto-commiting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

The-Git-Commit-Bot πŸ€–

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. πŸ“…

Features πŸš€

  • 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. ✏️

Workflow Breakdown πŸ› οΈ

  1. Scheduled Run: The workflow runs automatically every day at midnight UTC, or can be triggered manually. πŸ•›
  2. Checkout Repository: The repository is checked out to the runner. πŸ“‚
  3. Set Up Git: Git is configured with a username and email for committing. πŸ§‘β€πŸ’»
  4. Update File: A file (myfile.txt) is updated with the current date and time. πŸ“„
  5. Commit Changes: The changes are committed to the repository with a message containing the timestamp. πŸ“
  6. Push Changes: The changes are pushed to the main branch. πŸš€

Prerequisites πŸ”‘

  • A GitHub repository. 🏠
  • GitHub Actions enabled for your repository. βš™οΈ

How to Set Up πŸ”§

  1. Create a new repository or navigate to an existing one. πŸ”„
  2. Add the .github/workflows/auto_commit.yml file to your repository with the content provided. πŸ“‚
  3. Ensure that your repository has a file (e.g., myfile.txt) that the bot will update. πŸ“
  4. Commit the workflow file to your repository. πŸ’Ύ
  5. The bot will automatically run daily or can be triggered manually. πŸ”

About

This GitHub Action automates daily commits to your repository at midnight (UTC). Ideal for continuous content updates, logging, or maintaining an active commit history, the Git Commit Bot ensures your repository consistently receives a daily update, simplifying repetitive tasks and keeping your project fresh.

Topics

Resources

Code of conduct

Stars

Watchers

Forks