File tree Expand file tree Collapse file tree 2 files changed +31
-39
lines changed Expand file tree Collapse file tree 2 files changed +31
-39
lines changed Original file line number Diff line number Diff line change 6
6
- master
7
7
8
8
jobs :
9
+ update-cli-screenshots :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v4
13
+ with :
14
+ token : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
15
+ fetch-depth : 0
16
+ - name : Set up Python
17
+ uses : actions/setup-python@v5
18
+ with :
19
+ python-version : " 3.x"
20
+ - name : Install dependencies
21
+ run : |
22
+ python -m pip install -U pip poetry
23
+ poetry --version
24
+ poetry install
25
+ - name : Update CLI screenshots
26
+ run : |
27
+ poetry run python scripts/gen_cli_help_screenshots.py
28
+ - name : Commit and push updated CLI screenshots
29
+ run : |
30
+ git config --global user.name "github-actions[bot]"
31
+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
32
+ git add docs/images/cli_help
33
+ git commit -m "docs(cli/screenshots) update CLI screenshots" -m "[skip ci]"
34
+ git push
35
+
9
36
publish-documentation :
10
37
runs-on : ubuntu-latest
38
+ needs : update-cli-screenshots
11
39
steps :
12
40
- uses : actions/checkout@v4
13
41
with :
14
42
token : " ${{ secrets.PERSONAL_ACCESS_TOKEN }}"
15
43
fetch-depth : 0
44
+ - name : Pull latest changes
45
+ run : |
46
+ git pull origin master
16
47
- name : Set up Python
17
48
uses : actions/setup-python@v5
18
49
with :
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments