-
Notifications
You must be signed in to change notification settings - Fork 160
55 lines (43 loc) · 1.14 KB
/
update-cli-docs.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
48
49
50
51
52
53
54
55
name: Update CLI docs
on:
workflow_dispatch:
# schedule:
# - cron: "10 20 * * 1-5" # workdays at 20:10
env:
HUSKY: 0
jobs:
check_saleor_release:
name: Update CLI docs
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- name: Checkout CLI repository
uses: actions/checkout@v4
with:
repository: saleor/cli
path: cli
- name: Remove docs/cli
run: rm -rf docs/cli
- name: Copy CLI docs
run: cp -r cli/docs/cli docs/
- name: Remove CLI repository
run: rm -rf cli
- run: npm ci
- name: Lint changes
run: npm run lint
- name: Show changed files
run: git status
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
branch: bot-update-cli-3.x
commit-message: "Update CLI docs"
title: "Update CLI docs"
body: |
Pull request auto-generated by bot
labels: |
:robot: bot