Skip to content

Commit

Permalink
Toolchain auto-update: fix comment posting
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tautschnig committed Aug 5, 2024
1 parent 03e2df3 commit cbd33f5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/toolchain-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,22 +50,21 @@ jobs:
- name: Add debugging hints
if: ${{ steps.create_pr.outputs.pull-request-number }}
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
issue_number: ${{ steps.create_pr.outputs.pull-request-number }},
owner: context.repo.owner,
repo: context.repo.repo,
body: >
This is an automatically generated pull request. If any of the CI checks fail,
body: `This is an automatically generated pull request. If any of the CI checks fail,
manual intervention is required. In such a case, review the changes at
https://github.com/rust-lang/rust from
https://github.com/rust-lang/rust/commit/${{ env.current_toolchain_hash }} up to
https://github.com/rust-lang/rust/commit/${{ env.next_toolchain_hash }}. The log
for this commit range is:
${{ env.git_log }}
${{ env.git_log }}`
})
- name: Create Issue
Expand Down

0 comments on commit cbd33f5

Please sign in to comment.