This repository has been archived on 2025-05-28. You can view files and clone it, but cannot push or open issues or pull requests.
Files
mojang-blocklist/.github/workflows/update.yml
2022-09-05 15:16:47 -04:00

32 lines
753 B
YAML

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: Fetch latest data
run: |-
npm run update-blocklist
- name: Generate todo.txt
run: |-
npm run update-todo
- 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