Skip to content

Commit eca93c5

Browse files
committed
Customise the PR and fix gh pr merge commands
1 parent 0a383be commit eca93c5

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/release-extension.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ jobs:
1414
outputs:
1515
version_changed: ${{ steps.version_changed.outputs.changed }}
1616
new_version: ${{ steps.get_new_version.outputs.version }}
17-
old_version: ${{ steps.get_old_version.outputs.version }}
1817
steps:
1918
- name: Checkout repository
2019
uses: actions/checkout@v4
@@ -36,7 +35,6 @@ jobs:
3635
git checkout $PREV_TAG
3736
VERSION=$(jq -r '.version' manifest.json)
3837
echo "OLD_VERSION=$VERSION" >> $GITHUB_ENV
39-
echo "version=$VERSION" >> $GITHUB_OUTPUT
4038
4139
- name: Print versions
4240
run: |
@@ -107,10 +105,17 @@ jobs:
107105
- name: Create Pull Request
108106
id: create_pr
109107
uses: peter-evans/create-pull-request@v6
108+
with:
109+
title: "Update README and CHANGELOG for v${{ needs.check_version.outputs.new_version }}"
110+
branch: "update-docs-${{ needs.check_version.outputs.new_version }}"
111+
commit-message: "Update README and CHANGELOG for v${{ needs.check_version.outputs.new_version }}"
112+
body: "This PR updates the README and CHANGELOG files for the new version v${{ needs.check_version.outputs.new_version }}."
113+
labels: documentation, release, github-actions
114+
delete-branch: true
110115

111116
- name: Merge Pull Request
112117
id: merge_pr
113-
run: gh pr merge ${{ steps.create_pr.outputs.pull-request-number }}
118+
run: gh pr merge "${{ steps.create_pr.outputs.pull-request-number }}"
114119
env:
115120
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
116121

0 commit comments

Comments
 (0)