Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ce2128f

Browse files
marcosdotmeLee-W
authored andcommitted
feat(ci/cd): automates the generation of CLI screenshots
1 parent f1ece99 commit ce2128f

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /