File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CZ Dry Run Bump on PR
2
+
3
+ on :
4
+ pull_request :
5
+ types : [opened, synchronize]
6
+
7
+ jobs :
8
+ cz_dry_run_comment :
9
+ runs-on : ubuntu-latest
10
+
11
+ steps :
12
+ - name : Checkout code
13
+ uses : actions/checkout@v4
14
+ with :
15
+ fetch-depth : 0
16
+
17
+ - name : Set up Python
18
+ uses : actions/setup-python@v5
19
+ with :
20
+ python-version : " 3.13"
21
+
22
+ - name : Install dependencies
23
+ run : |
24
+ pip install poetry
25
+ poetry install
26
+
27
+ - name : Run cz bump --dry-run
28
+ run : |
29
+ echo '## 🔍 Commitizen Dry Run Preview' > comment.md
30
+ echo '```' >> comment.md
31
+ poetry run cz bump --dry-run >> comment.md
32
+ echo '```' >> comment.md
33
+
34
+ - name : Comment on PR
35
+ uses : peter-evans/create-or-update-comment@v4
36
+ with :
37
+ token : ${{ secrets.GITHUB_TOKEN }}
38
+ issue-number : ${{ github.event.pull_request.number }}
39
+ body-path : comment.md
40
+ body-includes : " ## 🔍 Commitizen Dry Run Preview"
41
+ edit-mode : replace
You can’t perform that action at this time.
0 commit comments