From 8a3ce6c75267825d0c9d1247bada496d66e6de74 Mon Sep 17 00:00:00 2001 From: Kalileh <84103529+Kalil4h@users.noreply.github.com> Date: Fri, 3 Mar 2023 15:30:25 +0330 Subject: [PATCH 01/53] feat(domain): add `mahidoodi.is-a-backend.dev` --- domains/mahidoodi.is-a-backend.dev.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 domains/mahidoodi.is-a-backend.dev.json diff --git a/domains/mahidoodi.is-a-backend.dev.json b/domains/mahidoodi.is-a-backend.dev.json new file mode 100644 index 0000000..6e0212a --- /dev/null +++ b/domains/mahidoodi.is-a-backend.dev.json @@ -0,0 +1,16 @@ +{ + "$schema": "../schemas/domain.json", + + "domain": "is-a-backend.dev", + "subdomain": "mahidoodi", + + "owner": { + "email": "ahmad.yk94@gmail.com" + }, + + "records": { + "CNAME": "crimson-lab-e0b9.powerfull.workers.dev" + }, + + "proxied": true +} From bffcf61aa2e3b5d2a7cb00d9f6c9502ecc0383b1 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Fri, 3 Mar 2023 21:40:43 +0800 Subject: [PATCH 02/53] disable proxy --- domains/mahidoodi.is-a-backend.dev.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domains/mahidoodi.is-a-backend.dev.json b/domains/mahidoodi.is-a-backend.dev.json index 6e0212a..ba4cc47 100644 --- a/domains/mahidoodi.is-a-backend.dev.json +++ b/domains/mahidoodi.is-a-backend.dev.json @@ -12,5 +12,5 @@ "CNAME": "crimson-lab-e0b9.powerfull.workers.dev" }, - "proxied": true + "proxied": false } From 39ce0177ace9d861480101b75ca6c323aebcff79 Mon Sep 17 00:00:00 2001 From: Mahmoud Galal <42272376+Mahmoudgalalz@users.noreply.github.com> Date: Fri, 3 Mar 2023 17:06:05 +0200 Subject: [PATCH 03/53] Create kro.is-a-backend.dev.json --- domains/kro.is-a-backend.dev.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 domains/kro.is-a-backend.dev.json diff --git a/domains/kro.is-a-backend.dev.json b/domains/kro.is-a-backend.dev.json new file mode 100644 index 0000000..7200d94 --- /dev/null +++ b/domains/kro.is-a-backend.dev.json @@ -0,0 +1,16 @@ +{ + "$schema": "../schemas/domain.json", + + "domain": "is-a-frontend.dev", + "subdomain": "kro", + + "owner": { + "email": "krooking0@gmail.com" + }, + + "records": { + "CNAME": "cname.vercel-dns.com.", + }, + + "proxied": true +} From bb6d3903656724fc01a8bb8196d307c9805ad3ca Mon Sep 17 00:00:00 2001 From: Mahmoud Galal <42272376+Mahmoudgalalz@users.noreply.github.com> Date: Fri, 3 Mar 2023 17:07:06 +0200 Subject: [PATCH 04/53] Update kro.is-a-backend.dev.json --- domains/kro.is-a-backend.dev.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domains/kro.is-a-backend.dev.json b/domains/kro.is-a-backend.dev.json index 7200d94..fdefc1d 100644 --- a/domains/kro.is-a-backend.dev.json +++ b/domains/kro.is-a-backend.dev.json @@ -9,7 +9,7 @@ }, "records": { - "CNAME": "cname.vercel-dns.com.", + "CNAME": "cname.vercel-dns.com", }, "proxied": true From cfd5fd0e691ac5e17f64d8561f542f4b4ab188d8 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 07:12:44 +0800 Subject: [PATCH 05/53] disable proxy --- domains/kro.is-a-backend.dev.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domains/kro.is-a-backend.dev.json b/domains/kro.is-a-backend.dev.json index fdefc1d..3691f59 100644 --- a/domains/kro.is-a-backend.dev.json +++ b/domains/kro.is-a-backend.dev.json @@ -12,5 +12,5 @@ "CNAME": "cname.vercel-dns.com", }, - "proxied": true + "proxied": false } From 74bc8c133e724c23e726beeb92e35211c2e892c6 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 07:15:20 +0800 Subject: [PATCH 06/53] fix json --- domains/kro.is-a-backend.dev.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domains/kro.is-a-backend.dev.json b/domains/kro.is-a-backend.dev.json index 3691f59..6e736b4 100644 --- a/domains/kro.is-a-backend.dev.json +++ b/domains/kro.is-a-backend.dev.json @@ -9,7 +9,7 @@ }, "records": { - "CNAME": "cname.vercel-dns.com", + "CNAME": "cname.vercel-dns.com" }, "proxied": false From a0f05955e0af8b63647c1bab033a3335a0d55efd Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 07:26:07 +0800 Subject: [PATCH 07/53] Add json checker --- .github/workflows/validation.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index 372dab6..3858cc4 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -22,3 +22,15 @@ jobs: - uses: actions/checkout@v3 - uses: gacts/install-dnscontrol@v1 - run: dnscontrol check + + json: + name: JSON + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: JSON Syntax Check + uses: limitusus/json-syntax-check@v1 + with: + pattern: "\\.json$" + env: + base: "domains/" From 3bbf3acd143045c9e95d865a59ce34b51b5da8a4 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 07:29:09 +0800 Subject: [PATCH 08/53] fix --- .github/workflows/validation.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index 3858cc4..aa62c24 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -29,8 +29,8 @@ jobs: steps: - uses: actions/checkout@v2 - name: JSON Syntax Check - uses: limitusus/json-syntax-check@v1 - with: - pattern: "\\.json$" - env: - base: "domains/" + uses: limitusus/json-syntax-check@v1 + with: + pattern: "\\.json$" + env: + base: "domains/" From 35ce37e79638910f83878988e5abf5f2fbe650d4 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 07:33:58 +0800 Subject: [PATCH 09/53] Update validation.yml --- .github/workflows/validation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index aa62c24..c32cdb0 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -33,4 +33,4 @@ jobs: with: pattern: "\\.json$" env: - base: "domains/" + BASE: "domains/" From 019c7933ed20b733459893474193506845817338 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 07:40:00 +0800 Subject: [PATCH 10/53] Update labeler.yml --- .github/labeler.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/labeler.yml b/.github/labeler.yml index 92c2ca7..d7cbef2 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,5 +1,14 @@ domain: - domains/* +dns: +- "dnsconfig.js" + readme: - "README.md" + +schemas: +- schemas/ + +workflows: +- .github/workflows/ From 066faa1e770b549ba240102b77b38cc7feb984a0 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 07:43:26 +0800 Subject: [PATCH 11/53] Update raw-api.yml --- .github/workflows/raw-api.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/raw-api.yml b/.github/workflows/raw-api.yml index e50e7db..3f071f4 100644 --- a/.github/workflows/raw-api.yml +++ b/.github/workflows/raw-api.yml @@ -5,7 +5,7 @@ on: branches: [main] paths: - ".github/workflows/raw-api.yml" - - "domains/*.json" + - "domains/*" - "scripts/raw-api.js" jobs: From d7ea53af730718129db39cfb35a399cf9d9a1ebf Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 07:44:09 +0800 Subject: [PATCH 12/53] Update raw-api.yml --- .github/workflows/raw-api.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/raw-api.yml b/.github/workflows/raw-api.yml index 3f071f4..76c88ac 100644 --- a/.github/workflows/raw-api.yml +++ b/.github/workflows/raw-api.yml @@ -6,6 +6,7 @@ on: paths: - ".github/workflows/raw-api.yml" - "domains/*" + - "raw-api/" - "scripts/raw-api.js" jobs: From 6d355b892ba19b9d4971817016ee824187651d6b Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 07:57:53 +0800 Subject: [PATCH 13/53] Update deploy.yml --- .github/workflows/deploy.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 204f7ef..a7d3197 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,7 +4,9 @@ on: workflow_dispatch: {} push: branches: [main] - paths: [domains/**, .github/workflows/deploy-records.yml] + paths: + - domains/ + - .github/workflows/deploy.yml concurrency: group: ${{ github.ref }}-deploy @@ -17,12 +19,15 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: gacts/install-dnscontrol@v1 + - name: Create Credentials File + run: echo '{"cloudflare":{"TYPE":"CLOUDFLAREAPI","accountid":"$CF_ID","apitoken":"$CF_TOKEN"}}' > ./dns/creds.json - - name: Create credentials file - run: echo '{"cloudflare":{"TYPE":"CLOUDFLAREAPI","accountid":"$CF_ID","apitoken":"$CF_TOKEN"}}' > ./creds.json - - - run: dnscontrol push + - name: Push + uses: koenrh/dnscontrol-action@v3 env: - CF_ID: ${{ secrets.CF_ACCOUNT_ID }} - CF_TOKEN: ${{ secrets.CF_API_TOKEN }} + CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }} + with: + args: push + + config_file: "dns/config.js" + creds_file: "dns/creds.json" From 8dc2e65de3b968804e82c1c4bb14a600cec58f6d Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 07:57:55 +0800 Subject: [PATCH 14/53] Update validation.yml --- .github/workflows/validation.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index c32cdb0..5618737 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -7,7 +7,7 @@ on: paths: - "domains/" - "schemas/" - - "dnsconfig.js" + - "dns/config.js" pull_request: concurrency: @@ -20,8 +20,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: gacts/install-dnscontrol@v1 - - run: dnscontrol check + + - name: Check + uses: koenrh/dnscontrol-action@v3 + with: + args: check + config_file: "dns/config.js" json: name: JSON From 50b8f6aa15baf04fcfafda8d8ff888d1db5d0b92 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 07:58:16 +0800 Subject: [PATCH 15/53] Rename dnsconfig.js to dns/config.js --- dnsconfig.js => dns/config.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename dnsconfig.js => dns/config.js (100%) diff --git a/dnsconfig.js b/dns/config.js similarity index 100% rename from dnsconfig.js rename to dns/config.js From 4b1ede4affca5d9fe4c74ff80840556e68e306d4 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 07:58:57 +0800 Subject: [PATCH 16/53] Update config.js --- dns/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dns/config.js b/dns/config.js index 8cde19d..e081445 100644 --- a/dns/config.js +++ b/dns/config.js @@ -35,7 +35,7 @@ function getDomainsList(filesPath) { return result; } -var domains = getDomainsList("./domains"); +var domains = getDomainsList("../domains"); /** * @type {{}} From 053fb5e97d8d2da2fa19ca91388da92b0ddb8820 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 08:01:39 +0800 Subject: [PATCH 17/53] Update deploy.yml --- .github/workflows/deploy.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a7d3197..1454f8c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,8 +19,8 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Create Credentials File - run: echo '{"cloudflare":{"TYPE":"CLOUDFLAREAPI","accountid":"$CF_ID","apitoken":"$CF_TOKEN"}}' > ./dns/creds.json + - name: Create creds.json + run: echo '{"cloudflare":{"TYPE":"CLOUDFLAREAPI","accountid":"$CF_ID","apitoken":"$CF_TOKEN"}}' > ./creds.json - name: Push uses: koenrh/dnscontrol-action@v3 @@ -30,4 +30,3 @@ jobs: args: push config_file: "dns/config.js" - creds_file: "dns/creds.json" From 5e574713512da843f32fa4816c5b4c3fe4005a91 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 08:06:20 +0800 Subject: [PATCH 18/53] Update deploy.yml --- .github/workflows/deploy.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1454f8c..b8c6c1d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,11 +22,12 @@ jobs: - name: Create creds.json run: echo '{"cloudflare":{"TYPE":"CLOUDFLAREAPI","accountid":"$CF_ID","apitoken":"$CF_TOKEN"}}' > ./creds.json + - run: ls + - name: Push uses: koenrh/dnscontrol-action@v3 env: CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }} with: args: push - config_file: "dns/config.js" From 2dba9926cc94939351975d98e69a3ba7dae3027e Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 08:07:33 +0800 Subject: [PATCH 19/53] Update deploy.yml --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b8c6c1d..c491549 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,7 +22,7 @@ jobs: - name: Create creds.json run: echo '{"cloudflare":{"TYPE":"CLOUDFLAREAPI","accountid":"$CF_ID","apitoken":"$CF_TOKEN"}}' > ./creds.json - - run: ls + - run: ls dns - name: Push uses: koenrh/dnscontrol-action@v3 @@ -30,4 +30,4 @@ jobs: CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }} with: args: push - config_file: "dns/config.js" + config_file: "/dns/config.js" From 1c073765557591ac9df552922fe5122293ecce4b Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 08:08:58 +0800 Subject: [PATCH 20/53] Update deploy.yml --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c491549..9660892 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -30,4 +30,4 @@ jobs: CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }} with: args: push - config_file: "/dns/config.js" + config_file: "./dns/config.js" From 7e77a1a134d040ba933c5379d4a12acb35a586f5 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 08:11:32 +0800 Subject: [PATCH 21/53] Update deploy.yml --- .github/workflows/deploy.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9660892..71b549e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,12 +22,11 @@ jobs: - name: Create creds.json run: echo '{"cloudflare":{"TYPE":"CLOUDFLAREAPI","accountid":"$CF_ID","apitoken":"$CF_TOKEN"}}' > ./creds.json - - run: ls dns - - name: Push uses: koenrh/dnscontrol-action@v3 env: CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }} with: args: push - config_file: "./dns/config.js" + config_file: 'dns/config.js' + creds_file: 'creds.json' From 81624990cd2e91ac973558c3324a026820871f56 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 08:14:04 +0800 Subject: [PATCH 22/53] Update deploy.yml --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 71b549e..5d8decb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -20,7 +20,7 @@ jobs: - uses: actions/checkout@v3 - name: Create creds.json - run: echo '{"cloudflare":{"TYPE":"CLOUDFLAREAPI","accountid":"$CF_ID","apitoken":"$CF_TOKEN"}}' > ./creds.json + run: echo '{"cloudflare":{"TYPE":"CLOUDFLAREAPI","accountid":"$CF_ACCOUNT_ID","apitoken":"$CF_API_TOKEN"}}' > ./creds.json - name: Push uses: koenrh/dnscontrol-action@v3 From e5270999da59b180677aaa40cf8777cbd84ce551 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 08:16:12 +0800 Subject: [PATCH 23/53] Update deploy.yml --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5d8decb..739ab7d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -20,7 +20,7 @@ jobs: - uses: actions/checkout@v3 - name: Create creds.json - run: echo '{"cloudflare":{"TYPE":"CLOUDFLAREAPI","accountid":"$CF_ACCOUNT_ID","apitoken":"$CF_API_TOKEN"}}' > ./creds.json + run: echo '{"cloudflare":{"TYPE":"CLOUDFLAREAPI","apitoken":"$CLOUDFLARE_API_TOKEN"}}' > ./creds.json - name: Push uses: koenrh/dnscontrol-action@v3 From 52453256a80bda12311fb69623e5acb49f87ea38 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 08:17:53 +0800 Subject: [PATCH 24/53] Create creds.json --- dns/creds.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 dns/creds.json diff --git a/dns/creds.json b/dns/creds.json new file mode 100644 index 0000000..6361637 --- /dev/null +++ b/dns/creds.json @@ -0,0 +1,6 @@ +{ + "cloudflare": { + "TYPE": "CLOUDFLAREAPI", + "apitoken": "$CLOUDFLARE_API_TOKEN" + } +} From 62fc79aa2d145e70bd2212a2d88ec1a420672da3 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 08:18:25 +0800 Subject: [PATCH 25/53] Update deploy.yml --- .github/workflows/deploy.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 739ab7d..7691a44 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,9 +19,6 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Create creds.json - run: echo '{"cloudflare":{"TYPE":"CLOUDFLAREAPI","apitoken":"$CLOUDFLARE_API_TOKEN"}}' > ./creds.json - - name: Push uses: koenrh/dnscontrol-action@v3 env: @@ -29,4 +26,4 @@ jobs: with: args: push config_file: 'dns/config.js' - creds_file: 'creds.json' + creds_file: 'dns/creds.json' From 8c95a1fa687fd5eb49826f824a0594a650637fcc Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 08:18:45 +0800 Subject: [PATCH 26/53] Update deploy.yml --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7691a44..9c72ff7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,5 +25,5 @@ jobs: CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }} with: args: push - config_file: 'dns/config.js' - creds_file: 'dns/creds.json' + config_file: "dns/config.js" + creds_file: "dns/creds.json" From 0472b8815fea2377101780bb7afb5a8b35459b80 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 08:24:57 +0800 Subject: [PATCH 27/53] Update raw-api.yml --- .github/workflows/raw-api.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/raw-api.yml b/.github/workflows/raw-api.yml index 76c88ac..d32c863 100644 --- a/.github/workflows/raw-api.yml +++ b/.github/workflows/raw-api.yml @@ -6,7 +6,6 @@ on: paths: - ".github/workflows/raw-api.yml" - "domains/*" - - "raw-api/" - "scripts/raw-api.js" jobs: @@ -23,9 +22,13 @@ jobs: with: node-version: 16 + - run: mkdir raw-api + + - run: echo "raw.freesubdomains.org" > ./raw-api/CNAME + - run: echo "" > ./raw-api/index.json + - name: Run Script - run: | - node scripts/raw-api.js + run: node scripts/raw-api.js - name: Push Data uses: cpina/github-action-push-to-another-repository@main From 18906e4bb774040ba5633375a3bf6b16260c9221 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 08:25:10 +0800 Subject: [PATCH 28/53] Delete raw-api directory --- raw-api/CNAME | 1 - raw-api/index.json | 0 2 files changed, 1 deletion(-) delete mode 100644 raw-api/CNAME delete mode 100644 raw-api/index.json diff --git a/raw-api/CNAME b/raw-api/CNAME deleted file mode 100644 index bfabf07..0000000 --- a/raw-api/CNAME +++ /dev/null @@ -1 +0,0 @@ -raw.freesubdomains.org \ No newline at end of file diff --git a/raw-api/index.json b/raw-api/index.json deleted file mode 100644 index e69de29..0000000 From 4bb295b35d8ebadd2a471d742da30d9d6ee49e16 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 08:26:03 +0800 Subject: [PATCH 29/53] Update raw-api.yml --- .github/workflows/raw-api.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/raw-api.yml b/.github/workflows/raw-api.yml index d32c863..62d643b 100644 --- a/.github/workflows/raw-api.yml +++ b/.github/workflows/raw-api.yml @@ -25,6 +25,7 @@ jobs: - run: mkdir raw-api - run: echo "raw.freesubdomains.org" > ./raw-api/CNAME + - run: echo "" > ./raw-api/index.json - name: Run Script From f362f63c1f1043c7b2189d6670c4595fcbe9b7ad Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 08:27:37 +0800 Subject: [PATCH 30/53] Update raw-api.yml --- .github/workflows/raw-api.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/raw-api.yml b/.github/workflows/raw-api.yml index 62d643b..c8751f1 100644 --- a/.github/workflows/raw-api.yml +++ b/.github/workflows/raw-api.yml @@ -24,14 +24,16 @@ jobs: - run: mkdir raw-api - - run: echo "raw.freesubdomains.org" > ./raw-api/CNAME + - name: Create CNAME + run: echo "raw.freesubdomains.org" > ./raw-api/CNAME - - run: echo "" > ./raw-api/index.json + - name: Create index.json + run: echo "" > ./raw-api/index.json - name: Run Script run: node scripts/raw-api.js - - name: Push Data + - name: Push uses: cpina/github-action-push-to-another-repository@main with: source-directory: "raw-api" From f8af2ad894647dd9d930aedd04bd6d2e06c1278c Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 10:04:08 +0800 Subject: [PATCH 31/53] is-a-fullstack.dev --- README.md | 5 ++- domains/reserved/*.is-a-backend.dev.json | 2 +- domains/reserved/*.is-a-frontend.dev.json | 2 +- domains/reserved/is-a-fullstack.dev.json | 46 ++++++++++++++++++++ domains/reserved/www.is-a-backend.dev.json | 2 +- domains/reserved/www.is-a-frontend.dev.json | 2 +- domains/reserved/www.is-a-fullstack.dev.json | 12 +++++ schemas/domain.json | 2 +- schemas/reserved-domain.json | 2 +- 9 files changed, 67 insertions(+), 8 deletions(-) create mode 100644 domains/reserved/is-a-fullstack.dev.json create mode 100644 domains/reserved/www.is-a-fullstack.dev.json diff --git a/README.md b/README.md index 77fc4df..8e25602 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ Please select a method below to show instructions on how to register a domain.
1. **Star** and **[Fork](https://github.com/free-domains/register/fork)** this repository - 2. Add a new file called `example.domain.com.json` in the `/domains` folder to register the `example` subdomain on the `domain.com`. + 2. Add a new file called `example.domain.dev.json` in the `/domains` folder to register the `example` subdomain on the `domain.dev`. - An list of available domains can be found [here](#domains). 3. Edit it to meet your needs. - The file listed below is just an **example**, provide a **valid** JSON file with your needs. @@ -68,7 +68,7 @@ Please select a method below to show instructions on how to register a domain. { "$schema": "../schemas/domain.json", - "domain": "is-a-frontend.dev", + "domain": "is-a-fullstack.dev", "subdomain": "example", "owner": { @@ -107,6 +107,7 @@ Please select a method below to show instructions on how to register a domain. |:-:| | [`is-a-backend.dev`](https://is-a-backend.dev) | | [`is-a-frontend.dev`](https://is-a-frontend.dev) | +| [`is-a-fullstack.dev`](https://is-a-fullstack.dev) | ### Settings diff --git a/domains/reserved/*.is-a-backend.dev.json b/domains/reserved/*.is-a-backend.dev.json index 223f2f7..52d72d2 100644 --- a/domains/reserved/*.is-a-backend.dev.json +++ b/domains/reserved/*.is-a-backend.dev.json @@ -9,4 +9,4 @@ }, "proxied": false -} \ No newline at end of file +} diff --git a/domains/reserved/*.is-a-frontend.dev.json b/domains/reserved/*.is-a-frontend.dev.json index 11d1341..adee7c4 100644 --- a/domains/reserved/*.is-a-frontend.dev.json +++ b/domains/reserved/*.is-a-frontend.dev.json @@ -9,4 +9,4 @@ }, "proxied": false -} \ No newline at end of file +} diff --git a/domains/reserved/is-a-fullstack.dev.json b/domains/reserved/is-a-fullstack.dev.json new file mode 100644 index 0000000..56472e6 --- /dev/null +++ b/domains/reserved/is-a-fullstack.dev.json @@ -0,0 +1,46 @@ +{ + "$schema": "../../schemas/reserved-domain.json", + + "domain": "is-a-fullstack.dev", + "subdomain": "@", + + "records": { + "A": [ + "185.199.108.153", + "185.199.109.153", + "185.199.110.153", + "185.199.111.153" + ], + + "AAAA": [ + "2606:50c0:8000::153", + "2606:50c0:8001::153", + "2606:50c0:8002::153", + "2606:50c0:8003::153" + ], + + "TXT": [ + { + "name": "*._domainkey", + "value": "v=DKIM1; p=" + }, + + { + "name": "_dmarc", + "value": "v=DMARC1; p=reject; sp=reject; adkim=s; aspf=s;" + }, + + { + "name": "_github-pages-challenge-free-domains", + "value": "7c931afdc16843f326d02a669f3705" + }, + + { + "name": "@", + "value": "v=spf1 -all" + } + ] + }, + + "proxied": false +} diff --git a/domains/reserved/www.is-a-backend.dev.json b/domains/reserved/www.is-a-backend.dev.json index 0e33806..5ab2650 100644 --- a/domains/reserved/www.is-a-backend.dev.json +++ b/domains/reserved/www.is-a-backend.dev.json @@ -9,4 +9,4 @@ }, "proxied": false -} \ No newline at end of file +} diff --git a/domains/reserved/www.is-a-frontend.dev.json b/domains/reserved/www.is-a-frontend.dev.json index f8f6a3a..3452139 100644 --- a/domains/reserved/www.is-a-frontend.dev.json +++ b/domains/reserved/www.is-a-frontend.dev.json @@ -9,4 +9,4 @@ }, "proxied": false -} \ No newline at end of file +} diff --git a/domains/reserved/www.is-a-fullstack.dev.json b/domains/reserved/www.is-a-fullstack.dev.json new file mode 100644 index 0000000..5159522 --- /dev/null +++ b/domains/reserved/www.is-a-fullstack.dev.json @@ -0,0 +1,12 @@ +{ + "$schema": "../../schemas/reserved-domain.json", + + "domain": "is-a-fullstack.dev", + "subdomain": "www", + + "records": { + "CNAME": "is-a-fullstack.dev" + }, + + "proxied": false +} diff --git a/schemas/domain.json b/schemas/domain.json index cc036b4..a4d2f8e 100644 --- a/schemas/domain.json +++ b/schemas/domain.json @@ -9,7 +9,7 @@ }, "domain": { "type": "string", - "enum": ["is-a-backend.dev", "is-a-frontend.dev"] + "enum": ["is-a-backend.dev", "is-a-frontend.dev", "is-a-fullstack.dev"] }, "subdomain": { "type": "string", diff --git a/schemas/reserved-domain.json b/schemas/reserved-domain.json index 148b1b5..321900c 100644 --- a/schemas/reserved-domain.json +++ b/schemas/reserved-domain.json @@ -9,7 +9,7 @@ }, "domain": { "type": "string", - "enum": ["is-a-backend.dev", "is-a-frontend.dev"] + "enum": ["is-a-backend.dev", "is-a-frontend.dev", "is-a-fullstack.dev"] }, "subdomain": { "type": "string", From 353effdde4ab5b17a252bb63b0570fceed999d4c Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 10:06:21 +0800 Subject: [PATCH 32/53] Update deploy.yml --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9c72ff7..076d75e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,8 +5,8 @@ on: push: branches: [main] paths: - - domains/ - - .github/workflows/deploy.yml + - "domains/" + - ".github/workflows/deploy.yml" concurrency: group: ${{ github.ref }}-deploy From 3db904e42c7d26ab3931bbe59cdea8457a587bad Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 10:08:54 +0800 Subject: [PATCH 33/53] Update deploy.yml --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 076d75e..4504ac4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,8 +5,8 @@ on: push: branches: [main] paths: - - "domains/" - ".github/workflows/deploy.yml" + - "domains/" concurrency: group: ${{ github.ref }}-deploy @@ -19,7 +19,7 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Push + - name: Push Records uses: koenrh/dnscontrol-action@v3 env: CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }} From 19c18a4eca56286631eb05c4fcd200e0cda14a9a Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 10:10:23 +0800 Subject: [PATCH 34/53] Update deploy.yml --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4504ac4..c6f2f0c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,8 +5,8 @@ on: push: branches: [main] paths: - - ".github/workflows/deploy.yml" - "domains/" + - ".github/workflows/deploy.yml" concurrency: group: ${{ github.ref }}-deploy @@ -19,7 +19,7 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Push Records + - name: Push Data uses: koenrh/dnscontrol-action@v3 env: CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }} From bac331a5087841f26d6e3e284dbe663f8dbfb64e Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 10:12:51 +0800 Subject: [PATCH 35/53] Update pr.yml --- .github/workflows/pr.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index adef93a..07bef48 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -15,6 +15,7 @@ jobs: with: repo-token: "${{ secrets.GITHUB_TOKEN }}" sync-labels: true + check-star: name: Check Star runs-on: ubuntu-latest From 7dafb69d7a2c1c121c01c4df39fc3dbfccf88b7e Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 10:13:36 +0800 Subject: [PATCH 36/53] Delete issue.yml --- .github/workflows/issue.yml | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 .github/workflows/issue.yml diff --git a/.github/workflows/issue.yml b/.github/workflows/issue.yml deleted file mode 100644 index 9ff869b..0000000 --- a/.github/workflows/issue.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Issue - -on: - issues: - types: [opened] - -permissions: - contents: read - -jobs: - comment: - name: Comment - runs-on: ubuntu-latest - - permissions: - issues: write - - steps: - - uses: actions/checkout@v3 - - - uses: peter-evans/create-or-update-comment@v2 - with: - body: "Thank you for opening an issue, we will respond as soon as possible." - issue-number: ${{ github.event.issue.number }} - token: ${{ secrets.GITHUB_TOKEN }} From a4cb4f9a9b207cbb1eb26419a47c922878c478a0 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 10:15:01 +0800 Subject: [PATCH 37/53] feat(domain): add `william.is-a-fullstack.dev` --- domains/william.is-a-fullstack.dev.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 domains/william.is-a-fullstack.dev.json diff --git a/domains/william.is-a-fullstack.dev.json b/domains/william.is-a-fullstack.dev.json new file mode 100644 index 0000000..ee4bb50 --- /dev/null +++ b/domains/william.is-a-fullstack.dev.json @@ -0,0 +1,16 @@ +{ + "$schema": "../schemas/domain.json", + + "domain": "is-a-fullstack.dev", + "subdomain": "william", + + "owner": { + "email": "william@freesubdomains.org" + }, + + "records": { + "CNAME": "wdhdns.com" + }, + + "proxied": false +} From 9549acd90f8eba13a9efe63dbf7bd65d02023057 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 10:15:56 +0800 Subject: [PATCH 38/53] disable proxy --- domains/dan.is-a-backend.dev.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domains/dan.is-a-backend.dev.json b/domains/dan.is-a-backend.dev.json index 180ec55..1bd969c 100644 --- a/domains/dan.is-a-backend.dev.json +++ b/domains/dan.is-a-backend.dev.json @@ -12,5 +12,5 @@ "CNAME": "dkwygtig.github.io" }, - "proxied": true + "proxied": false } From 8e772ea198735c88b7113adb6d538a02c924a84a Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 10:16:33 +0800 Subject: [PATCH 39/53] Update william.is-a-frontend.dev.json --- domains/william.is-a-frontend.dev.json | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/domains/william.is-a-frontend.dev.json b/domains/william.is-a-frontend.dev.json index 3cb729c..f4366ea 100644 --- a/domains/william.is-a-frontend.dev.json +++ b/domains/william.is-a-frontend.dev.json @@ -9,14 +9,7 @@ }, "records": { - "CNAME": "williamdavidharrison.github.io", - - "TXT": [ - { - "name": "_github-pages-challenge-williamdavidharrison", - "value": "51d4a5e836ec051b1c5b3c5fb050b9" - } - ] + "CNAME": "wdhdns.com" }, "proxied": false From 00d5e90e08afeb03c4e493ded80349b3c074c19d Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 10:16:50 +0800 Subject: [PATCH 40/53] Update william.is-a-backend.dev.json --- domains/william.is-a-backend.dev.json | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/domains/william.is-a-backend.dev.json b/domains/william.is-a-backend.dev.json index 94852ed..a387f75 100644 --- a/domains/william.is-a-backend.dev.json +++ b/domains/william.is-a-backend.dev.json @@ -9,14 +9,7 @@ }, "records": { - "CNAME": "williamdavidharrison.github.io", - - "TXT": [ - { - "name": "_github-pages-challenge-williamdavidharrison", - "value": "48bebc4d20ca9ae5e712b5c1d0e39b" - } - ] + "CNAME": "wdhdns.com" }, "proxied": false From 8fea7d04ba0176b459f39ad32c4284c19252e004 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 10:30:27 +0800 Subject: [PATCH 41/53] Update deploy.yml --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c6f2f0c..783ecc6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,7 +5,7 @@ on: push: branches: [main] paths: - - "domains/" + - "domains/**" - ".github/workflows/deploy.yml" concurrency: From b4340c8e3b27e8ac2f354155e9fe988e99840806 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 10:30:47 +0800 Subject: [PATCH 42/53] Update validation.yml --- .github/workflows/validation.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index 5618737..123414b 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -5,9 +5,9 @@ on: push: branches: [main] paths: - - "domains/" - - "schemas/" - - "dns/config.js" + - "domains/**" + - "schemas/**" + - "dns/**" pull_request: concurrency: From a5c3cbbdeb0d51a7d0cb59a29c290f2468e99bd4 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 10:33:07 +0800 Subject: [PATCH 43/53] remove comment --- dns/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dns/config.js b/dns/config.js index e081445..a1aa2d0 100644 --- a/dns/config.js +++ b/dns/config.js @@ -45,7 +45,7 @@ var commit = {}; for (var idx in domains) { var domainData = domains[idx].data; - var proxyState = proxy.off; // Disabled by default + var proxyState = proxy.off; if (!commit[domainData.domain]) commit[domainData.domain] = []; if (domainData.proxied === true) proxyState = proxy.on; From 6c3a97f9f02b94a09c67eb8a9fd202e10730ddb7 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 10:33:41 +0800 Subject: [PATCH 44/53] Update validation.yml --- .github/workflows/validation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index 123414b..4584c48 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -5,9 +5,9 @@ on: push: branches: [main] paths: + - "dns/**" - "domains/**" - "schemas/**" - - "dns/**" pull_request: concurrency: From 8996c3be6548f7ce478be1d0a8402c9bbf14f790 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 10:34:09 +0800 Subject: [PATCH 45/53] add path --- .github/workflows/validation.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index 4584c48..a95ecd0 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -8,6 +8,7 @@ on: - "dns/**" - "domains/**" - "schemas/**" + - ".github/workflows/validation.yml" pull_request: concurrency: From c1204d36abd358ea53b177fe78c242da86d5420f Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 10:34:45 +0800 Subject: [PATCH 46/53] update paths order --- .github/workflows/raw-api.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/raw-api.yml b/.github/workflows/raw-api.yml index c8751f1..419a72b 100644 --- a/.github/workflows/raw-api.yml +++ b/.github/workflows/raw-api.yml @@ -4,8 +4,8 @@ on: push: branches: [main] paths: - - ".github/workflows/raw-api.yml" - "domains/*" + - ".github/workflows/raw-api.yml" - "scripts/raw-api.js" jobs: From 30484bf58e2f1fe32cff34ca34b7ebd47694f713 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 12:04:56 +0800 Subject: [PATCH 47/53] Rename dns/config.js to scripts/dns.js --- dns/config.js => scripts/dns.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename dns/config.js => scripts/dns.js (100%) diff --git a/dns/config.js b/scripts/dns.js similarity index 100% rename from dns/config.js rename to scripts/dns.js From be847d5772eef0e9a3c2054872147a93b1b7dd00 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 12:05:44 +0800 Subject: [PATCH 48/53] Update deploy.yml --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 783ecc6..832ec51 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,5 +25,5 @@ jobs: CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }} with: args: push - config_file: "dns/config.js" + config_file: "scripts/dns.js" creds_file: "dns/creds.json" From bb28ce685054e315f502e665aa1fe3076c13752e Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 12:06:14 +0800 Subject: [PATCH 49/53] Update validation.yml --- .github/workflows/validation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index a95ecd0..1eb21c1 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -26,7 +26,7 @@ jobs: uses: koenrh/dnscontrol-action@v3 with: args: check - config_file: "dns/config.js" + config_file: "scripts/dns.js" json: name: JSON From 88bd09ceb1e916f543858080843db030292ce3c4 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 12:08:16 +0800 Subject: [PATCH 50/53] Update labeler.yml --- .github/labeler.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index d7cbef2..2351ffe 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -2,13 +2,13 @@ domain: - domains/* dns: -- "dnsconfig.js" +- "scripts/dns.js" readme: - "README.md" schemas: -- schemas/ +- schemas/** workflows: -- .github/workflows/ +- .github/workflows/** From c7ecc7f34367e70d4436d1f5da96da2ef10d2e69 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 12:12:25 +0800 Subject: [PATCH 51/53] Generate creds.json --- .github/workflows/deploy.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 832ec51..bb7d8a4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,6 +19,9 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Create creds.json + run: echo '{"cloudflare":{"TYPE":"CLOUDFLAREAPI","apitoken":"$CLOUDFLARE_API_TOKEN"}}' > ./creds.json + - name: Push Data uses: koenrh/dnscontrol-action@v3 env: @@ -26,4 +29,3 @@ jobs: with: args: push config_file: "scripts/dns.js" - creds_file: "dns/creds.json" From aa02046a01234ef9363d43b25fd0fa39e800c3f5 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 12:12:44 +0800 Subject: [PATCH 52/53] Delete dns directory --- dns/creds.json | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 dns/creds.json diff --git a/dns/creds.json b/dns/creds.json deleted file mode 100644 index 6361637..0000000 --- a/dns/creds.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "cloudflare": { - "TYPE": "CLOUDFLAREAPI", - "apitoken": "$CLOUDFLARE_API_TOKEN" - } -} From 2267b49ee67eaefe10273f7ce685d6cf0d9e58cc Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 4 Mar 2023 12:17:04 +0800 Subject: [PATCH 53/53] remove space --- scripts/raw-api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/raw-api.js b/scripts/raw-api.js index 772d501..89c3398 100644 --- a/scripts/raw-api.js +++ b/scripts/raw-api.js @@ -9,7 +9,7 @@ fs.readdir(directoryPath, function (err, files) { if(err) throw err; function removeValue(value, index, arr) { - if (value === "reserved") { + if(value === "reserved") { arr.splice(index, 1); return true; }