rename to .gitea
Some checks failed
Pull latest data from Mojang API / scheduled (push) Failing after 8s
Some checks failed
Pull latest data from Mojang API / scheduled (push) Failing after 8s
This commit is contained in:
parent
7253f88fdb
commit
cacf3ad81b
40
.gitea/workflows/update.yml
Normal file
40
.gitea/workflows/update.yml
Normal file
@ -0,0 +1,40 @@
|
||||
name: Pull latest data from Mojang API
|
||||
|
||||
on:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: "25 */6 * * *"
|
||||
|
||||
jobs:
|
||||
scheduled:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out this repo
|
||||
uses: actions/checkout@v2
|
||||
- name: Install needed node modules
|
||||
run: |-
|
||||
npm i
|
||||
- name: Fetch latest data
|
||||
run: |-
|
||||
npm run update-blocklist
|
||||
- name: Generate todo.txt
|
||||
run: |-
|
||||
comm -23 <(sort -u data/current.txt) <(awk -F= '{print $1}' data/identified.txt |sort -u) | sort -u > data/todo.txt
|
||||
- name: Check IMSB
|
||||
run: |-
|
||||
./scripts/check_imsb.sh
|
||||
- name: Generate todo.txt (again)
|
||||
run: |-
|
||||
comm -23 <(sort -u data/current.txt) <(awk -F= '{print $1}' data/identified.txt |sort -u) | sort -u > data/todo.txt
|
||||
- name: Generate merged.txt
|
||||
run: |-
|
||||
npm run update-merged
|
||||
- name: Commit and push if it changed
|
||||
run: |-
|
||||
git config user.name "Automated"
|
||||
git config user.email "actions@users.noreply.github.com"
|
||||
git add -A
|
||||
timestamp=$(date -u)
|
||||
git commit -m "Blocklist updated: ${timestamp}" || exit 0
|
||||
git push
|
40
.github/workflows/update.yml
vendored
40
.github/workflows/update.yml
vendored
@ -1,40 +0,0 @@
|
||||
name: Pull latest data from Mojang API
|
||||
|
||||
on:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '25 */6 * * *'
|
||||
|
||||
jobs:
|
||||
scheduled:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out this repo
|
||||
uses: actions/checkout@v2
|
||||
- name: Install needed node modules
|
||||
run: |-
|
||||
npm i
|
||||
- name: Fetch latest data
|
||||
run: |-
|
||||
npm run update-blocklist
|
||||
- name: Generate todo.txt
|
||||
run: |-
|
||||
comm -23 <(sort -u data/current.txt) <(awk -F= '{print $1}' data/identified.txt |sort -u) | sort -u > data/todo.txt
|
||||
- name: Check IMSB
|
||||
run: |-
|
||||
./scripts/check_imsb.sh
|
||||
- name: Generate todo.txt (again)
|
||||
run: |-
|
||||
comm -23 <(sort -u data/current.txt) <(awk -F= '{print $1}' data/identified.txt |sort -u) | sort -u > data/todo.txt
|
||||
- name: Generate merged.txt
|
||||
run: |-
|
||||
npm run update-merged
|
||||
- name: Commit and push if it changed
|
||||
run: |-
|
||||
git config user.name "Automated"
|
||||
git config user.email "actions@users.noreply.github.com"
|
||||
git add -A
|
||||
timestamp=$(date -u)
|
||||
git commit -m "Blocklist updated: ${timestamp}" || exit 0
|
||||
git push
|
Loading…
x
Reference in New Issue
Block a user