Skip to content

Commit 9f6f312

Browse files
chore: update all versions of actions/checkout to v4 (#199)
In this PR, I update the `actions/checkout` versions. When I recently started using this action, I was confused about whether it works with the newest checkout action. I tested it and everything is fine. For future users, we should display examples with the newest versions.
1 parent 2e59dd7 commit 9f6f312

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/demo.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
os: [ ubuntu-latest, macOS-latest, windows-latest ]
99
runs-on: ${{ matrix.os }}
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212
- name: Setup key
1313
uses: ./
1414
with:
@@ -28,7 +28,7 @@ jobs:
2828
container:
2929
image: ubuntu:latest
3030
steps:
31-
- uses: actions/checkout@v3
31+
- uses: actions/checkout@v4
3232
- run: apt update && apt install -y openssh-client git
3333
- name: Setup key
3434
uses: ./

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ GitHub Actions only have access to the repository they run for. So, in order to
2626
* In your repository, go to the *Settings > Secrets* menu and create a new secret. In this example, we'll call it `SSH_PRIVATE_KEY`.
2727
* Put the contents of the *private* SSH key file into the contents field. <br>
2828
* This key should start with `-----BEGIN ... PRIVATE KEY-----`, consist of many lines and ends with `-----END ... PRIVATE KEY-----`.
29-
5. In your workflow definition file, add the following step. Preferably this would be rather on top, near the `actions/checkout@v2` line.
29+
5. In your workflow definition file, add the following step. Preferably this would be rather on top, near the `actions/checkout@v4` line.
3030

3131
```yaml
3232
# .github/workflows/my-workflow.yml
3333
jobs:
3434
my_job:
3535
...
3636
steps:
37-
- uses: actions/checkout@v3
37+
- uses: actions/checkout@v4
3838
# Make sure the @v0.8.0 matches the current version of the action
3939
- uses: webfactory/[email protected]
4040
with:

0 commit comments

Comments
 (0)