File tree 1 file changed +39
-0
lines changed
1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Generate CLI screenshots
2
+
3
+ on :
4
+ pull_request :
5
+ types :
6
+ - closed
7
+
8
+ jobs :
9
+ generate_cli_screenshots :
10
+ if : github.event.pull_request.merged == true
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+ with :
15
+ token : " ${{ secrets.PERSONAL_ACCESS_TOKEN }}"
16
+ fetch-depth : 0
17
+
18
+ - name : Set up Python
19
+ uses : actions/setup-python@v5
20
+ with :
21
+ python-version : " 3.x"
22
+
23
+ - name : Install dependencies
24
+ run : |
25
+ python -m pip install -U pip poetry
26
+ poetry --version
27
+ poetry install
28
+
29
+ - name : Generate CLI screenshots
30
+ run : |
31
+ poetry run python scripts/gen_cli_help_screenshots.py
32
+
33
+ - name : Commit and push CLI screenshots
34
+ run : |
35
+ git config --global user.name "github-actions[bot]"
36
+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
37
+ git add docs/images/cli_help
38
+ git commit -m "docs(cli/screenshots) update CLI screenshots"
39
+ git push
You can’t perform that action at this time.
0 commit comments