Skip to content

Commit e582a41

Browse files
committed
ci: automatically push changelog updates
1 parent 1017c72 commit e582a41

1 file changed

Lines changed: 7 additions & 18 deletions

File tree

.github/workflows/CI_pypi_release.yml

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -70,23 +70,12 @@ jobs:
7070
--include-path "${{ steps.pathfinder.outputs.project_path }}/**/*"
7171
--tag-pattern "${{ steps.pathfinder.outputs.project_path }}-v*"
7272
73-
- name: Create Pull Request
74-
uses: peter-evans/create-pull-request@v8
73+
- name: Commit changelog
74+
uses: EndBug/add-and-commit@v9
7575
with:
76-
token: ${{ secrets.HAYSTACK_BOT_TOKEN }}
77-
commit-message: "Update changelog for ${{ steps.pathfinder.outputs.project_path }}"
78-
branch: update-changelog-${{ steps.pathfinder.outputs.project_path }}
79-
base: main
80-
title: "docs: update changelog for ${{ steps.pathfinder.outputs.project_path }}"
81-
add-paths: |
82-
${{ steps.pathfinder.outputs.project_path }}/CHANGELOG.md
83-
body: |
84-
This PR updates the changelog for ${{ steps.pathfinder.outputs.project_path }} integration
85-
with the latest changes just released on PyPi. Please review the changelog diff below and adjust it
86-
if necessary.
87-
88-
A good changelog diff simply lists these latest changes on top of the CHANGELOG.md file.
89-
If there are some diffs that seem out of place, please adjust the CHANGELOG.md file manually.
90-
Either way, please merge this PR as soon as possible.
91-
reviewers: "${{ github.actor }}"
76+
author_name: "HaystackBot"
77+
author_email: "accounts@deepset.ai"
78+
message: "Update the changelog"
79+
add: ${{ steps.pathfinder.outputs.project_path }}
80+
push: origin HEAD:main
9281

0 commit comments

Comments
 (0)