Skip to content

Commit ddd2799

Browse files
authored
Update sync-release-version.yml
1 parent 06f22a5 commit ddd2799

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/sync-release-version.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
name: Update release version.
2+
3+
permissions:
4+
contents: write
5+
pull-requests: write
6+
27
on:
38
release:
49
types: [published]
@@ -19,16 +24,18 @@ jobs:
1924
with:
2025
pattern: '${{ github.repository }}@'
2126
only_major: true
27+
use_tag_commit_hash: true
2228
paths: README.md
2329
- name: Run git-cliff
24-
uses: tj-actions/git-cliff@v1
30+
uses: tj-actions/git-cliff@v2
2531
- name: Create Pull Request
26-
uses: peter-evans/create-pull-request@v7
32+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
2733
with:
2834
base: "main"
2935
labels: "merge when passing"
36+
sign-commits: true
3037
title: "Upgraded to ${{ steps.sync-release-version.outputs.new_version }}"
3138
branch: "upgrade-to-${{ steps.sync-release-version.outputs.new_version }}"
3239
commit-message: "Upgraded from ${{ steps.sync-release-version.outputs.old_version }} -> ${{ steps.sync-release-version.outputs.new_version }}"
3340
body: "View [CHANGES](https://github.com/${{ github.repository }}/compare/${{ steps.sync-release-version.outputs.old_version }}...${{ steps.sync-release-version.outputs.new_version }})"
34-
token: ${{ secrets.PAT_TOKEN }}
41+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)