-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
2e59dd7
commit 9f6f312
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,15 +26,15 @@ GitHub Actions only have access to the repository they run for. So, in order to | |
* In your repository, go to the *Settings > Secrets* menu and create a new secret. In this example, we'll call it `SSH_PRIVATE_KEY`. | ||
* Put the contents of the *private* SSH key file into the contents field. <br> | ||
* This key should start with `-----BEGIN ... PRIVATE KEY-----`, consist of many lines and ends with `-----END ... PRIVATE KEY-----`. | ||
5. In your workflow definition file, add the following step. Preferably this would be rather on top, near the `actions/checkout@v2` line. | ||
5. In your workflow definition file, add the following step. Preferably this would be rather on top, near the `actions/checkout@v4` line. | ||
|
||
```yaml | ||
# .github/workflows/my-workflow.yml | ||
jobs: | ||
my_job: | ||
... | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
# Make sure the @v0.8.0 matches the current version of the action | ||
- uses: webfactory/[email protected] | ||
with: | ||
|