Skip to content

Commit c8c0693

Browse files
committed
update mkbrr update check
1 parent 1db8289 commit c8c0693

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

‎.github/workflows/check-mkbrr-updates.yaml‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,17 @@ jobs:
4040
- name: Create GitHub Issue Notification
4141
if: env.NEW_RELEASE == 'true' && env.ISSUE_EXISTS == 'false'
4242
run: |
43+
# Create issue body with proper variable expansion
44+
ISSUE_BODY="A new mkbrr release ($LATEST_TAG) has been detected. Consider running the update workflow to incorporate the latest mkbrr binaries into Upload-Assistant."
45+
46+
# Use the variable in the JSON payload
4347
curl -X POST -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
4448
-H "Accept: application/vnd.github.v3+json" \
45-
-d '{
46-
"title": "New mkbrr Release Available!",
47-
"body": "A new mkbrr release ('$LATEST_TAG') has been detected. Consider running the update workflow to incorporate the latest mkbrr binaries into Upload-Assistant.",
48-
"labels": ["mkbrr", "update"]
49-
}' \
49+
-d "{
50+
\"title\": \"New mkbrr Release Available!\",
51+
\"body\": \"$ISSUE_BODY\",
52+
\"labels\": [\"mkbrr\", \"update\"]
53+
}" \
5054
"https://api.github.com/repos/${{ github.repository }}/issues"
5155
5256
echo "Created new issue for mkbrr release $LATEST_TAG"

0 commit comments

Comments
 (0)