-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (32 loc) · 1.02 KB
/
generate.yaml
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: Injective Docs Generation
on: workflow_dispatch
jobs:
generate:
runs-on: ubuntu-latest
steps:
- name: Checkout injective-docs
uses: actions/checkout@v1
with:
repository: InjectiveLabs/injective-docs
ref: dev
path: ./injective-docs
- name: Generate new docs from injective-core
run: |
export GH_CORE_USER=${{ secrets.GH_CORE_USER }}
export GH_CORE_TOKEN=${{ secrets.GH_CORE_TOKEN }}
./scripts/setup.sh
- name: Checkout injective-docs
uses: actions/checkout@v1
with:
repository: InjectiveLabs/injective-docs
ref: dev
path: ./injective-docs
- name: Set up Git user
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
- name: Commit the changes to injective-docs
run: |
git add .
git status
git commit -m "chore: docs regenerated"