Update to checkout v4 (#3759)

Noticed due to
https://github.com/carbon-language/carbon-lang/actions/runs/8207272518

```
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
```

I'm expecting we can just update the version number on these.
This commit is contained in:
Jon Ross-Perkins
2024-03-08 20:25:04 +00:00
committed by GitHub
parent 1d2b7db482
commit 0405fff68c
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -56,13 +56,13 @@ jobs:
# Checkout the pull request head or the branch.
- name: Checkout pull request
if: github.event_name == 'pull_request'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Checkout branch
if: github.event_name != 'pull_request'
uses: actions/checkout@v3
uses: actions/checkout@v4
# Tests should only run on applicable paths, but we still need to have an
# action run for the merge queue. We filter steps based on the paths here,