Skip to content

Commit 38ac0dd

Browse files
authored
chore: fix changelog generation VSCODE-346 (#555)
1 parent 093d341 commit 38ac0dd

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

.github/workflows/rebuild-changelog.yaml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,21 @@ jobs:
4949
env:
5050
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5151

52-
- name: Commit CHANGELOG.md changes
53-
run: |
54-
git add CHANGELOG.md
55-
git commit --no-allow-empty -m "chore: update CHANGELOG.md" CHANGELOG.md || true
56-
- name: Push updates
57-
uses: ad-m/[email protected]
52+
- name: Create Pull Request
53+
uses: peter-evans/create-pull-request@v4
5854
with:
59-
github_token: ${{ secrets.GITHUB_TOKEN }}
60-
branch: main
55+
commit-message: Update changelog
56+
branch: ci/update-changelog
57+
title: 'chore: update CHANGELOG.md'
58+
add-paths: |
59+
CHANGELOG.md
60+
body: |
61+
- Update `CHANGELOG.md`
62+
63+
- name: Merge PR
64+
env:
65+
PULL_REQUEST_NUMBER: ${{steps.cpr.outputs.pull-request-number}}
66+
# NOTE: we don't use a PAT so to not trigger further automation
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+
run: |
69+
gh pr merge $PULL_REQUEST_NUMBER --squash --delete-branch

0 commit comments

Comments
 (0)