KevinNitroG / GDI-Auto-Update

Google Drive Index (Bhadoo Index) auto update code, support rclone to list shared drive and deploy to Cloudflare Worker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GDI AUTO UPDATE

  • Auto fetch the latest source code of GDI (Bhadoo Index)
  • Auto deploy to Cloudflare Worker
  • Automated using Github Action with schedule (cron)
  • Support Rclone to list all shared drives

💁 BADGE

GitHub forks GitHub last commit (branch) CodeFactor Grade

📃 TABLE OF CONTENTS

📝 HOW TO USE

1️⃣ Fork, enable action

2️⃣ Add variable for Github Action

  • Go to your forked repo's Settings > Secrets and Variables (Or click here from your forked repo)
  • Create secret is recommended over variable because secret is hidden from public when running in Github Action
NAME VALUE REQUIRED EXAMPLE DESCRIPTION WHERE TO GET
USER_HEADER URL to raw code Yes exampleUserHeader.js The user variables of GDI from Start of code to the line // DON'T TOUCH BELOW THIS UNLESS YOU KNOW WHAT YOU'RE DOING
DON'T EDIT THE root:
GDI worker.js source code
DRIVE_ROOT URL to raw code Yes exampleDriveRoot.json List of drives to put in root variable of GDI code Set yourself
CLOUDFLARE_ACCOUNT_ID string Yes 1234567890abcdef1234567890abcdef Cloudflare Account ID from your URL 1. Go to https://dash.cloudflare.com/
2. Later, there will be a long string in the URL after https://dash.cloudflare.com/1234567890abcdef1234567890abcdef
CLOUDFLARE_API_TOKEN string Yes 324WeASb3i1e2oiVASd_659uAsIUbas Cloudflare API Token 1. Go to https://dash.cloudflare.com/profile/api-tokens
2. Click on Create Token
3. Choose Use template of Edit Cloudflare Workers
4. Select yourself the Account Resouces and Zone Resources
5. Continue to summary > Create Token
6. Copy the token
WRANGLER_TOML URL to raw code Yes exampleWrangler.toml Wrangler.toml file Wrangler docs
USER_RCLONE_CONFIG URL to raw code No No need Rclone config file Rclone docs
RCLONE_DRIVE_NAME string No MyGDrive Name of the drive to list all shared drives
In fact it will run command rclone backend drives <MyGDrive>:

Note

For the Variable which need URL to raw code, you can use any website to create raw code like gist github, pastebin,...

Note

For GIST

  • When you click on raw, the URL will be like:

    • https://gist.githubusercontent.com/<id1>/raw/<id2>/exampleOfDriveHehe.js
  • Remove the <id2> and paste in Github Action secret / variable

    • https://gist.githubusercontent.com/<id1>/raw/exampleOfDriveHehe.js

3️⃣ Trigger workflow

🌟 STAR HISTORY

Star History Chart

About

Google Drive Index (Bhadoo Index) auto update code, support rclone to list shared drive and deploy to Cloudflare Worker

License:MIT License


Languages

Language:Python 76.7%Language:Shell 23.3%