Skip to content

Xtha-Sunil/Greenify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌱 Automated Daily Commits for a Green GitHub Heatmap 🌱

Views

Hits

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.

🚀 Quick Start Guide

  1. 📥 Download the files

    • Click the link above to download the .github/workflows folder and greenify.py script.
  2. 🔨 Create a New Repository

    • In your GitHub account, create a new repository (avoid using a fork as it won’t work for contributions).
  3. 📂 Copy Files into Your Repository

    • Unzip the download, then add the .github/workflows folder and greenify.py to your new repository.
  4. 🔑 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).
  5. 🛠 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.
  6. ⚙️ 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
  7. 🕰 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
  8. ⬆️ Push Your Changes

    • Commit and push everything to GitHub:
      git add .
      git commit -m "Set up daily commit workflow"
      git push origin main

⚡ Workflow Overview

  • Automated Commits: The workflow will authenticate with your PAT and run greenify.py daily, making commits to keep your GitHub heatmap green.

🌐 Trouble in setting up: Ping me

LinkedIn


If you find this helpful, please ⭐ star this project! 😊

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages