Remove locales and tabula workflows

This commit is contained in:
Misode
2019-12-27 14:23:38 +01:00
parent 3a9d83d775
commit e7b829b2bf
2 changed files with 0 additions and 47 deletions

View File

@@ -1,30 +0,0 @@
name: Update Locales
on:
schedule:
- cron: '0 0 * * *'
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v1.1.0
with:
python-version: '10.x'
- name: Fetch changes from Tabula
run: |
format_script="let obj = JSON.parse(process.argv[1]); JSON.stringify(obj, Object.keys(obj).sort(), 4);"
node -p "$format_script" "$(curl 'https://tabulas.herokuapp.com/api/loot-table/en/')" > "locales/en.json"
node -p "$format_script" "$(curl 'https://tabulas.herokuapp.com/api/loot-table/ru/')" > "locales/ru.json"
node -p "$format_script" "$(curl 'https://tabulas.herokuapp.com/api/loot-table/zh-CN/')" > "locales/zh-CN.json"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update locales
title: Update locales
author-name: Github Action
author-email: action@github.com
branch: locales
branch-suffix: short-commit-hash

View File

@@ -1,17 +0,0 @@
name: Update Tabula
on:
push:
paths:
- 'locales/*.json'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Push changes to Tabula
run: |
curl "https://tabulas.herokuapp.com/api/loot-table/en/${{ secrets.TABULA_TOKEN}}/" -d "@locales/en.json" -H 'Content-Type: application/json'
curl "https://tabulas.herokuapp.com/api/loot-table/ru/${{ secrets.TABULA_TOKEN}}/" -d "@locales/ru.json" -H 'Content-Type: application/json'
curl "https://tabulas.herokuapp.com/api/loot-table/zh-CN/${{ secrets.TABULA_TOKEN}}/" -d "@locales/zh-CN.json" -H 'Content-Type: application/json'