Skip to content

Commit 8997da5

Browse files
committed
feat: bump dry run github action
1 parent 5b0848c commit 8997da5

File tree

1 file changed

+41
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)