Skip to content

Commit b24c01b

Browse files
authored
Toolchain auto-update: fix comment posting (#3415)
actions/github-script uses Javascript, so we need to use Javascript rather than YAML syntax in the body of the script. Also, update to version 7 to avoid deprecation warnings. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.
1 parent b9293db commit b24c01b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/toolchain-upgrade.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,22 +50,21 @@ jobs:
5050
5151
- name: Add debugging hints
5252
if: ${{ steps.create_pr.outputs.pull-request-number }}
53-
uses: actions/github-script@v6
53+
uses: actions/github-script@v7
5454
with:
5555
script: |
5656
github.rest.issues.createComment({
5757
issue_number: ${{ steps.create_pr.outputs.pull-request-number }},
5858
owner: context.repo.owner,
5959
repo: context.repo.repo,
60-
body: >
61-
This is an automatically generated pull request. If any of the CI checks fail,
60+
body: `This is an automatically generated pull request. If any of the CI checks fail,
6261
manual intervention is required. In such a case, review the changes at
6362
https://github.com/rust-lang/rust from
6463
https://github.com/rust-lang/rust/commit/${{ env.current_toolchain_hash }} up to
6564
https://github.com/rust-lang/rust/commit/${{ env.next_toolchain_hash }}. The log
6665
for this commit range is:
6766
68-
${{ env.git_log }}
67+
${{ env.git_log }}`
6968
})
7069
7170
- name: Create Issue

0 commit comments

Comments
 (0)