mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-08-21 22:24:07 +00:00
Update raw-api.yml
This commit is contained in:
@@ -6,6 +6,7 @@ on:
|
||||
paths:
|
||||
- "domains/*"
|
||||
- ".github/workflows/raw-api.yml"
|
||||
- "util/raw-api.js"
|
||||
- "util/reserved.json"
|
||||
|
||||
workflow_dispatch:
|
||||
@@ -22,18 +23,12 @@ jobs:
|
||||
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
|
||||
run: node util/raw-api.js
|
||||
|
||||
- name: Commit
|
||||
uses: cpina/github-action-push-to-another-repository@main
|
||||
@@ -41,7 +36,7 @@ jobs:
|
||||
source-directory: "raw-api"
|
||||
destination-github-username: is-a-dev
|
||||
destination-repository-name: raw-api
|
||||
user-email: "actions@github.com"
|
||||
user-name: "GitHub Actions"
|
||||
user-email: "bot@is-a.dev"
|
||||
user-name: "is-a-dev-bot"
|
||||
env:
|
||||
API_TOKEN_GITHUB: ${{ secrets.BOT }}
|
||||
|
||||
Reference in New Issue
Block a user