You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
51
51
52
52
<!-- start usage -->
53
53
```yaml
54
-
- uses: actions/checkout@v5
54
+
- uses: actions/checkout@v6
55
55
with:
56
56
# Repository name with owner. For example, actions/checkout
57
57
# Default: ${{ github.repository }}
@@ -190,15 +190,15 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
190
190
## Fetch only the root files
191
191
192
192
```yaml
193
-
- uses: actions/checkout@v5
193
+
- uses: actions/checkout@v6
194
194
with:
195
195
sparse-checkout: .
196
196
```
197
197
198
198
## Fetch only the root files and `.github` and `src` folder
199
199
200
200
```yaml
201
-
- uses: actions/checkout@v5
201
+
- uses: actions/checkout@v6
202
202
with:
203
203
sparse-checkout: |
204
204
.github
@@ -208,7 +208,7 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
208
208
## Fetch only a single file
209
209
210
210
```yaml
211
-
- uses: actions/checkout@v5
211
+
- uses: actions/checkout@v6
212
212
with:
213
213
sparse-checkout: |
214
214
README.md
@@ -218,23 +218,23 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
218
218
## Fetch all history for all tags and branches
219
219
220
220
```yaml
221
-
- uses: actions/checkout@v5
221
+
- uses: actions/checkout@v6
222
222
with:
223
223
fetch-depth: 0
224
224
```
225
225
226
226
## Checkout a different branch
227
227
228
228
```yaml
229
-
- uses: actions/checkout@v5
229
+
- uses: actions/checkout@v6
230
230
with:
231
231
ref: my-branch
232
232
```
233
233
234
234
## Checkout HEAD^
235
235
236
236
```yaml
237
-
- uses: actions/checkout@v5
237
+
- uses: actions/checkout@v6
238
238
with:
239
239
fetch-depth: 2
240
240
- run: git checkout HEAD^
@@ -244,12 +244,12 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
244
244
245
245
```yaml
246
246
- name: Checkout
247
-
uses: actions/checkout@v5
247
+
uses: actions/checkout@v6
248
248
with:
249
249
path: main
250
250
251
251
- name: Checkout tools repo
252
-
uses: actions/checkout@v5
252
+
uses: actions/checkout@v6
253
253
with:
254
254
repository: my-org/my-tools
255
255
path: my-tools
@@ -260,10 +260,10 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
260
260
261
261
```yaml
262
262
- name: Checkout
263
-
uses: actions/checkout@v5
263
+
uses: actions/checkout@v6
264
264
265
265
- name: Checkout tools repo
266
-
uses: actions/checkout@v5
266
+
uses: actions/checkout@v6
267
267
with:
268
268
repository: my-org/my-tools
269
269
path: my-tools
@@ -274,12 +274,12 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
274
274
275
275
```yaml
276
276
- name: Checkout
277
-
uses: actions/checkout@v5
277
+
uses: actions/checkout@v6
278
278
with:
279
279
path: main
280
280
281
281
- name: Checkout private tools
282
-
uses: actions/checkout@v5
282
+
uses: actions/checkout@v6
283
283
with:
284
284
repository: my-org/my-private-tools
285
285
token: ${{ secrets.GH_PAT }} # `GH_PAT` is a secret that contains your PAT
@@ -292,7 +292,7 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
292
292
## Checkout pull request HEAD commit instead of merge commit
293
293
294
294
```yaml
295
-
- uses: actions/checkout@v5
295
+
- uses: actions/checkout@v6
296
296
with:
297
297
ref: ${{ github.event.pull_request.head.sha }}
298
298
```
@@ -308,7 +308,7 @@ jobs:
308
308
build:
309
309
runs-on: ubuntu-latest
310
310
steps:
311
-
- uses: actions/checkout@v5
311
+
- uses: actions/checkout@v6
312
312
```
313
313
314
314
## Push a commit using the built-in token
@@ -319,7 +319,7 @@ jobs:
319
319
build:
320
320
runs-on: ubuntu-latest
321
321
steps:
322
-
- uses: actions/checkout@v5
322
+
- uses: actions/checkout@v6
323
323
- run: |
324
324
date > generated.txt
325
325
# Note: the following account information will not work on GHES
0 commit comments