Skip to content

Commit 11954e6

Browse files
authored
🔧 ci: fix condition to run workflow
1 parent 10915be commit 11954e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ jobs:
3333
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3434
run: npm run release
3535

36-
- name: 🔧 Install Gitmoji Changelog
37-
if: "branch == 'main'"
36+
- name: 🔧 Install Gitmoji Changelog
37+
if: github.ref == 'refs/heads/main'
3838
run: npm i -g gitmoji-changelog
3939

4040
- name: 📜 Generate Changelog
41-
if: "branch == 'main'"
41+
if: github.ref == 'refs/heads/main'
4242
run: gitmoji-changelog
4343

4444
- uses: stefanzweifel/git-auto-commit-action@v4
45-
if: "branch == 'main'"
45+
if: github.ref == 'refs/heads/main'
4646
with:
4747
commit_message: ':memo: docs: update changelog [skip ci]'

0 commit comments

Comments
 (0)