Skip to content

Commit

Permalink
[vcpkg-ci] Update "PR Suggestions" workflow actions (microsoft#23520)
Browse files Browse the repository at this point in the history
`actions/github-script` -> v6
`actions/checkout` -> v3
`actions/upload-artifact` -> v3
  • Loading branch information
xavier2k6 authored Mar 14, 2022
1 parent fad0644 commit d7ac060
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/trustedPR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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')
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/untrustedPR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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')
Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
console.log(output);
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: pr
path: pr/

0 comments on commit d7ac060

Please sign in to comment.