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