Skip to content

Commit a1a29e8

Browse files
committed
refactor: clean up update_version.yml and improve commit message formatting
1 parent 3f040d8 commit a1a29e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/update_version.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
release:
55
types: [published]
66
workflow_dispatch:
7-
push: # to be removed - Remove this entirely when done testing
87

98
permissions:
109
contents: write
@@ -54,11 +53,12 @@ jobs:
5453
with:
5554
commit-message: "chore: update version.txt to ${{ env.VERSION }}"
5655
branch: update-version-txt-${{ github.run_id }}
57-
title: "chore: update version.txt to ${{ env.VERSION }}"
56+
title: "chore: update version to ${{ env.VERSION }}"
5857
body: |
5958
This PR updates version.txt to the latest release version.
6059
6160
**Version**: ${{ env.VERSION }}
61+
**Release**: ${{ github.event_name == 'release' && github.event.release.html_url || format('https://github.com/{0}/releases/tag/{1}', github.repository, env.VERSION) }}
6262
**Triggered by**: ${{ github.event_name }}
6363
labels: automation,version-update
6464
delete-branch: true

0 commit comments

Comments
 (0)