Create update_tabula.yml

This commit is contained in:
Misode
2019-12-26 02:08:37 +01:00
committed by GitHub
parent 2dcfaf8323
commit efca338f88

17
.github/workflows/update_tabula.yml vendored Normal file
View File

@@ -0,0 +1,17 @@
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'