@@ -4,43 +4,93 @@ Automated daily activity tracker to maintain consistent GitHub contributions and
44
55## 📊 Purpose
66
7- This repository uses an automated Python script to log daily activity and maintain my GitHub contribution graph. It helps me:
7+ This repository uses ** GitHub Actions ** to automatically log daily activity and maintain my GitHub contribution graph. It helps me:
88
9- - Keep my GitHub streak alive
9+ - Keep my GitHub streak alive 🔥
1010- Track daily coding consistency
1111- Maintain an active GitHub profile
12- - Practice automation and scripting
12+ - Practice automation and CI/CD workflows
1313
1414## 🛠️ How It Works
1515
16- The repository contains a Python script that:
17- 1 . Logs a daily timestamp to ` daily_activity.log `
18- 2 . Commits the changes automatically
19- 3 . Pushes to GitHub to update the contribution graph
20- 4 . Runs on a scheduled basis (daily automation)
16+ The repository contains ** two methods** for maintaining the streak:
17+
18+ ### 1. ** Automated (Recommended)** - GitHub Actions
19+ - Runs automatically ** every day at 00:00 UTC** (5:30 AM IST)
20+ - No manual intervention required
21+ - Uses GitHub's built-in automation
22+ - Works even when you're offline
23+
24+ ### 2. ** Manual** - Python Script
25+ - Run ` auto_commit.py ` manually when needed
26+ - Use ` run_auto_commit.bat ` on Windows for quick execution
27+ - Useful for testing or backup
2128
2229## 🚀 Features
2330
24- - ✅ Automated daily commits
25- - ✅ Timestamp logging
26- - ✅ Maintains GitHub streak
27- - ✅ No manual intervention needed
31+ - ✅ ** Fully automated** daily commits via GitHub Actions
32+ - ✅ ** Manual trigger** option from GitHub Actions tab
33+ - ✅ Timestamp logging in ` daily_activity.log `
34+ - ✅ Maintains GitHub streak without manual intervention
35+ - ✅ Smart branch detection (main/master)
36+ - ✅ Conflict prevention with automatic pulls
2837- ✅ Simple and lightweight
2938
39+ ## ⚙️ Setup
40+
41+ ### GitHub Actions (Automatic)
42+
43+ The workflow is already configured in ` .github/workflows/daily-commit.yml ` . It runs automatically:
44+
45+ 1 . ** Scheduled** : Every day at 00:00 UTC
46+ 2 . ** Manual** : Go to ** Actions** → ** Daily GitHub Streak** → ** Run workflow**
47+
48+ No additional setup required! Just push the workflow file to GitHub.
49+
50+ ### Manual Execution (Python Script)
51+
52+ If you want to run manually:
53+
54+ ``` bash
55+ # Clone the repository
56+ git clone https://github.com/pathumzcode/Day-To-Day-Update.git
57+ cd Day-To-Day-Update
58+
59+ # Run the script
60+ python auto_commit.py
61+
62+ # Or on Windows, double-click:
63+ run_auto_commit.bat
64+ ```
65+
3066## 📝 Activity Log
3167
3268All daily activities are tracked in ` daily_activity.log ` with timestamps
3369
34- ## ⚙️ Technology Stack
70+ ## 🔧 Technology Stack
3571
3672- ** Language:** Python 3
3773- ** Version Control:** Git
38- - ** Automation:** Cron/Task Scheduler
74+ - ** Automation:** GitHub Actions
75+ - ** CI/CD:** YAML workflow
76+
77+ ## 🐛 Troubleshooting
78+
79+ ### Workflow not running?
80+ - Check ** Actions** tab on GitHub for errors
81+ - Ensure ** Actions** are enabled in repository settings
82+ - Verify the workflow file is in ` .github/workflows/ `
83+
84+ ### Manual script not working?
85+ - Make sure you have Python 3 installed
86+ - Verify git is configured: ` git config --global user.name "Your Name" `
87+ - Check internet connection
88+ - Ensure you have push access to the repository
3989
4090## 📌 Note
4191
4292This is an automated activity tracker. For my actual coding projects and contributions, check out my other repositories.
4393
4494---
4595
46- ** Profile:** [ @pathumzcode ] ( https://github.com/pathumzcode )
96+ ** Profile:** [ @pathumzcode ] ( https://github.com/pathumzcode ) | ** Automated: ** ✅ GitHub Actions
0 commit comments