[vcpkg-ci] Update "PR Suggestions" workflow actions (#23520)

`actions/github-script` -> v6
`actions/checkout` -> v3
`actions/upload-artifact` -> v3
This commit is contained in:
xavier2k6 2022-03-14 21:54:50 +00:00 committed by GitHub
parent fad0644ade
commit d7ac060d01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -17,7 +17,7 @@ jobs:
steps:
- name: 'Download artifact'
uses: actions/github-script@v3.1.0
uses: actions/github-script@v6
with:
script: |
var artifacts = await github.actions.listWorkflowRunArtifacts({
@ -38,7 +38,7 @@ jobs:
fs.writeFileSync('${{github.workspace}}/pr.zip', Buffer.from(download.data));
- run: unzip pr.zip
- uses: actions/github-script@v4
- uses: actions/github-script@v6
with:
script: |
const { promises: fs } = require('fs')

View File

@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
# fetch-depth 50 tries to ensure we capture the whole history of the branch
fetch-depth: 50
@ -51,7 +51,7 @@ jobs:
git diff > .github-pr.x-add-version.diff
git reset HEAD~ --mixed
- uses: actions/github-script@v4
- uses: actions/github-script@v6
with:
script: |
const { promises: fs } = require('fs')
@ -126,7 +126,7 @@ jobs:
console.log(output);
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: pr
path: pr/