From cbd33f59f8f2934d114445f1ad9465c466eb795b Mon Sep 17 00:00:00 2001 From: Michael Tautschnig Date: Mon, 5 Aug 2024 08:04:20 +0000 Subject: [PATCH] Toolchain auto-update: fix comment posting 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. --- .github/workflows/toolchain-upgrade.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/toolchain-upgrade.yml b/.github/workflows/toolchain-upgrade.yml index 1b33e3135316..b11f4e6b591a 100644 --- a/.github/workflows/toolchain-upgrade.yml +++ b/.github/workflows/toolchain-upgrade.yml @@ -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