mirror of
https://github.com/tiennm99/is-a-good-dev.git
synced 2026-06-04 16:14:19 +00:00
33 lines
812 B
YAML
33 lines
812 B
YAML
name: Raw API
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "domains/*"
|
|
- ".github/workflows/raw-api.yml"
|
|
- "scripts/raw-api.js"
|
|
|
|
jobs:
|
|
update:
|
|
name: Update
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 16
|
|
|
|
- name: Run Script
|
|
run: |
|
|
git config --global user.email "will@is-a,good.dev"
|
|
git config --global user.name "is-a-good-dev-BOT"
|
|
node scripts/raw-api.js
|
|
git add util/index.json
|
|
git commit -m "Update Raw API"
|
|
git push
|