-
Notifications
You must be signed in to change notification settings - Fork 91
38 lines (34 loc) · 1.05 KB
/
cron.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
name: Cron
on:
workflow_dispatch:
schedule:
- cron: '0 8 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: run
env:
MY_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd ..
git clone https://github.com/dotabap/dotabap-validator.git
git clone https://github.com/dotabap/dotabap-generated.git
cd dotabap-validator
npm install
npm ls
cd ..
dotabap-validator/generate dotabap-list/list.json $MY_TOKEN > dotabap-generated/generated.json
- name: dotabap/dotabap-generated
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
deploy_key: ${{ secrets.DEPLOY_DOTABAP_GENERATED }}
external_repository: dotabap/dotabap-generated
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
publish_branch: main
cname: generated.dotabap.org
publish_dir: ../dotabap-generated