Skip to content

Commit 81dba9e

Browse files
committed
Fix "you are not on the same branch" error
1 parent 780b6ce commit 81dba9e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/conventional-commits.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,21 @@ jobs:
1111
- uses: actions/checkout@v4
1212
with:
1313
fetch-depth: 0
14+
ref: ${{ github.head_ref }}
15+
16+
- name: Setup Git
17+
run: |
18+
git config --global user.name "Conventional Changelog Action"
19+
git config --global user.email "conventional.changelog.action@github.com"
20+
git checkout ${{ github.head_ref }}
1421
1522
- name: Conventional Commits
1623
uses: TriPSs/conventional-changelog-action@v3
1724
with:
1825
github-token: ${{ secrets.GITHUB_TOKEN }}
19-
version-file: "./package/package.json"
26+
version-file: './package/package.json'
2027
skip-version-file: false
2128
skip-commit: false
2229
skip-tag: false
2330
release-count: 0
24-
output-file: "CHANGELOG.md"
31+
output-file: 'CHANGELOG.md'

0 commit comments

Comments
 (0)