- 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
- Fork
- Enable action (Click this from your forked repo)
- Go to your forked repo's
Settings
>Secrets and Variables
(Or click here from your forked repo) - Create
secret
is recommended overvariable
becausesecret
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 / variablehttps://gist.githubusercontent.com/<id1>/raw/exampleOfDriveHehe.js
- Workflow will run at Runs at 8:00, only on Wednesday and Friday - UTC (by default)
- Run by someone / yourself star the repo
- Or manually trigger workflow from here (Click this from your forked repo)