This setup will make daily commits to keep your GitHub contributions heatmap green! Since contributions don’t count from forked repositories, please follow the steps below to create your own repository.
-
- Click the link above to download the
.github/workflows
folder andgreenify.py
script.
- Click the link above to download the
-
🔨 Create a New Repository
- In your GitHub account, create a new repository (avoid using a fork as it won’t work for contributions).
-
📂 Copy Files into Your Repository
- Unzip the download, then add the
.github/workflows
folder andgreenify.py
to your new repository.
- Unzip the download, then add the
-
🔑 Create a Personal Access Token (PAT)
- Go to Settings > Developer settings > Personal access tokens.
- Generate a token with
repo
permissions (make sure to copy it).
-
🛠 Add the PAT to Your Repository as a Secret
- Go to Settings > Secrets and variables > Actions in your new repository.
- Click New repository secret and set the name to
API_KEY
, then paste your token as the value.
-
⚙️ Customize the Script
- You need to modify the
greenify.py
script to adjust:- Username, Repository name
- Number of commits
- File paths, content, or commit messages
- You need to modify the
-
🕰 Set the Commit Schedule
- The default schedule runs at 6:00 PM Nepal Time (NPT). If you want a different time, change the
cron
in.github/workflows/daily-commit.yml
:cron: '12 12 * * *' # Default: Runs daily at 6:00 PM NPT
- The default schedule runs at 6:00 PM Nepal Time (NPT). If you want a different time, change the
-
⬆️ Push Your Changes
- Commit and push everything to GitHub:
git add . git commit -m "Set up daily commit workflow" git push origin main
- Commit and push everything to GitHub:
- Automated Commits: The workflow will authenticate with your PAT and run
greenify.py
daily, making commits to keep your GitHub heatmap green.
If you find this helpful, please ⭐ star this project! 😊