Skip to content

Commit 1094465

Browse files
Use actions/checkout v4 in examples
#302 (comment)
1 parent 3d1b5e0 commit 1094465

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
contents: write
4040

4141
steps:
42-
- uses: actions/checkout@v3
42+
- uses: actions/checkout@v4
4343

4444
# Other steps that change files in the repository
4545

@@ -144,7 +144,7 @@ jobs:
144144
contents: write
145145
146146
steps:
147-
- uses: actions/checkout@v3
147+
- uses: actions/checkout@v4
148148
with:
149149
ref: ${{ github.head_ref }}
150150
@@ -201,7 +201,7 @@ You must use `action/checkout@v2` or later versions to check out the repository.
201201
In non-`push` events, such as `pull_request`, make sure to specify the `ref` to check out:
202202

203203
```yaml
204-
- uses: actions/checkout@v3
204+
- uses: actions/checkout@v4
205205
with:
206206
ref: ${{ github.head_ref }}
207207
```
@@ -219,7 +219,7 @@ You can change this by creating a new [Personal Access Token (PAT)](https://gith
219219
storing the token as a secret in your repository and then passing the new token to the [`actions/checkout`](https://github.com/actions/checkout#usage) Action step.
220220

221221
```yaml
222-
- uses: actions/checkout@v3
222+
- uses: actions/checkout@v4
223223
with:
224224
token: ${{ secrets.PAT }}
225225
```
@@ -319,7 +319,7 @@ jobs:
319319
contents: write
320320
321321
steps:
322-
- uses: actions/checkout@v3
322+
- uses: actions/checkout@v4
323323
with:
324324
# Checkout the fork/head-repository and push changes to the fork.
325325
# If you skip this, the base repository will be checked out and changes
@@ -366,7 +366,7 @@ jobs:
366366
php-cs-fixer:
367367
runs-on: ubuntu-latest
368368
steps:
369-
- uses: actions/checkout@v3
369+
- uses: actions/checkout@v4
370370
371371
- name: Run php-cs-fixer
372372
uses: docker://oskarstark/php-cs-fixer-ga
@@ -408,7 +408,7 @@ Finally, you have to use `push_options: '--force'` to overwrite the git history
408408
The steps in your workflow might look like this:
409409

410410
```yaml
411-
- uses: actions/checkout@master
411+
- uses: actions/checkout@4
412412
with:
413413
# Fetch the last 2 commits instead of just 1. (Fetching just 1 commit would overwrite the whole history)
414414
fetch-depth: 2
@@ -452,7 +452,7 @@ First, you have to create a new [Personal Access Token (PAT)](https://github.com
452452
store the token as a secret in your repository and pass the new token to the [`actions/checkout`](https://github.com/actions/checkout#usage) Action step.
453453

454454
```yaml
455-
- uses: actions/checkout@v3
455+
- uses: actions/checkout@v4
456456
with:
457457
token: ${{ secrets.PAT }}
458458
```

0 commit comments

Comments
 (0)