-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
47 lines (38 loc) · 1.22 KB
/
raw-api.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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: open-domains/raw
path: raw
token: ${{ secrets.BOT }}
- uses: actions/setup-node@v4
with:
node-version: latest
- name: Update Data
run: node raw/scripts/update.js
- name: Commit
uses: cpina/github-action-push-to-another-repository@main
with:
source-directory: "raw"
destination-github-username: open-domains
destination-repository-name: raw
user-email: [email protected]
user-name: OD-BOT
commit-message: "Update Data via open-domains/register"
env:
API_TOKEN_GITHUB: ${{ secrets.BOT }}