Files
is-a-dev/.github/workflows/raw-api.yml
T
William Harrison 81394fc717 Create raw-api.yml
2024-01-27 18:27:28 +08:00

48 lines
1.2 KiB
YAML

name: Raw API
on:
push:
branches: [main]
paths:
- "domains/*"
- ".github/workflows/raw-api.yml"
workflow_dispatch:
concurrency:
group: ${{ github.ref }}-raw-api
cancel-in-progress: true
jobs:
update:
name: Update
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: is-a-dev/raw-api
path: raw-api
token: ${{ secrets.BOT }}
- uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Update Data
run: node raw-api/scripts/update.js
- name: Commit
uses: cpina/github-action-push-to-another-repository@main
with:
source-directory: "raw-api"
destination-github-username: is-a-dev
destination-repository-name: raw-api
user-email: is-a-dev@win11react.com
user-name: is-a-dev-bot
commit-message: "Update Data via is-a-dev/register"
env:
API_TOKEN_GITHUB: ${{ secrets.BOT }}