Skip to content

Commit 052d729

Browse files
authored
publish-commit-bottles: Fix bug with error message syntax from Homebrew#53098 (Homebrew#53104)
- I tried to be too clever. Given that I don't know JS, that was a bad idea. Let's do this the less elegant but (hopefully) definitely working way to avoid cryptic errors like: ``` [error]Cookies must be enabled to use GitHub. ``` from [`pr-publish` Actions runs](https://github.com/Homebrew/homebrew-core/runs/583194836?check_suite_focus=true).
1 parent cbc4461 commit 052d729

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish-commit-bottles.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
github.issues.createComment({
4545
...context.repo,
4646
issue_number: pr,
47-
body: '@' + actor + ' has [triggered a merge](%s).', url
47+
body: '@' + actor + ' has [triggered a merge](' + url + ').'
4848
})
4949
- name: Update Homebrew
5050
run: |
@@ -100,5 +100,5 @@ jobs:
100100
github.issues.createComment({
101101
...context.repo,
102102
issue_number: pr,
103-
body: '@' + actor + ' bottle publish [failed](%s).', url
103+
body: '@' + actor + ' bottle publish [failed](' + url + ').'
104104
})

0 commit comments

Comments
 (0)