Skip to content

Commit 6a44954

Browse files
timonbacksam0r040
andcommitted
chore(gh): Comment current release version
Co-authored-by: sam0r040 <93372330+sam0r040@users.noreply.github.com>
1 parent 1dbc0e8 commit 6a44954

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/gh-issues.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,14 @@ jobs:
3939
GH_ISSUE_NUMBER: ${{ github.event.issue.number }}
4040
GH_REPO: ${{ github.repository }}
4141
steps:
42+
- name: Fetch latest release version
43+
run: |
44+
LATEST_VERSION=$(gh release view --repo "$GH_REPO" --json tagName -q .tagName)
45+
echo "LATEST_VERSION=$LATEST_VERSION" >> $GITHUB_ENV
4246
- name: Comment on issue
4347
run: |
4448
cat << EOF | gh issue comment ${{ env.GH_ISSUE_NUMBER }} -F -
45-
The change is available in the latest release. 🎉
49+
The change is available in the latest release ($LATEST_VERSION). 🎉
4650
4751
Thank you for the report/contribution and making Springwolf better!
4852
EOF

0 commit comments

Comments
 (0)