Skip to content

Commit 10915be

Browse files
committed
🔧 ci: prevent update changelog from running out of main branch
1 parent 026f05b commit 10915be

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,14 @@ jobs:
3434
run: npm run release
3535

3636
- name: 🔧 Install Gitmoji Changelog
37+
if: "branch == 'main'"
3738
run: npm i -g gitmoji-changelog
3839

3940
- name: 📜 Generate Changelog
41+
if: "branch == 'main'"
4042
run: gitmoji-changelog
4143

4244
- uses: stefanzweifel/git-auto-commit-action@v4
45+
if: "branch == 'main'"
4346
with:
4447
commit_message: ':memo: docs: update changelog [skip ci]'

0 commit comments

Comments
 (0)