mirror of
https://github.com/partofmyid/register.git
synced 2026-06-05 10:36:50 +07:00
update script
This commit is contained in:
parent
8de5a77005
commit
2934db27ec
10 changed files with 26 additions and 44 deletions
14
.github/workflows/check.yml
vendored
14
.github/workflows/check.yml
vendored
|
|
@ -1,14 +0,0 @@
|
|||
name: Check
|
||||
|
||||
on: pull_request
|
||||
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: DNSControl check
|
||||
uses: koenrh/dnscontrol-action@v3
|
||||
with:
|
||||
args: check
|
||||
config_file: 'dnsconfig.js'
|
||||
15
.github/workflows/db.yml
vendored
15
.github/workflows/db.yml
vendored
|
|
@ -24,19 +24,16 @@ jobs:
|
|||
with:
|
||||
node-version: '18'
|
||||
|
||||
- name: Generate database
|
||||
run: node scripts/dbgen.js > stats/database.json
|
||||
|
||||
- name: Count domains
|
||||
run: ls domains | wc -l > stats/count.txt
|
||||
- name: Generate statistics
|
||||
run: |
|
||||
node scripts/dict.js > stats/dict.json 2>&1 &
|
||||
ls domains | wc -l > stats/count.txt 2>&1 &
|
||||
wait
|
||||
|
||||
- name: Commit changes
|
||||
run: |
|
||||
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
git config --global user.name "github-actions[bot]"
|
||||
git add stats/database.json stats/count.txt
|
||||
ls -l
|
||||
ls -l stats
|
||||
pwd
|
||||
git add stats/dict.json stats/count.txt
|
||||
git commit -m "[automated] update stats"
|
||||
git push
|
||||
|
|
|
|||
4
.github/workflows/deploy.yml
vendored
4
.github/workflows/deploy.yml
vendored
|
|
@ -7,7 +7,7 @@ on:
|
|||
paths:
|
||||
- "domains/**"
|
||||
- ".github/workflows/publish.yml"
|
||||
- "dnsconfig.js"
|
||||
- "scripts/dnsconfig.js"
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.ref }}-publish
|
||||
|
|
@ -26,4 +26,4 @@ jobs:
|
|||
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
|
||||
with:
|
||||
args: push
|
||||
config_file: "dnsconfig.js"
|
||||
config_file: "scripts/dnsconfig.js"
|
||||
7
.github/workflows/validation.yml
vendored
7
.github/workflows/validation.yml
vendored
|
|
@ -8,7 +8,8 @@ on:
|
|||
paths:
|
||||
- "domains/**"
|
||||
- ".github/workflows/validation.yml"
|
||||
- "dnsconfig.js"
|
||||
- "scripts/dnsconfig.js"
|
||||
- "scripts/schema.json"
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.ref }}-validation
|
||||
|
|
@ -24,7 +25,7 @@ jobs:
|
|||
uses: koenrh/dnscontrol-action@v3
|
||||
with:
|
||||
args: check
|
||||
config_file: "dnsconfig.js"
|
||||
config_file: "scripts/dnsconfig.js"
|
||||
json:
|
||||
name: JSON
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -40,4 +41,4 @@ jobs:
|
|||
uses: cardinalby/schema-validator-action@v3
|
||||
with:
|
||||
file: 'domains/*.json'
|
||||
schema: 'schema.json'
|
||||
schema: 'scripts/schema.json'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue