@@ -51,7 +51,7 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
5151
5252<!-- start usage-->
5353``` yaml
54- -uses :actions/checkout@v5
54+ -uses :actions/checkout@v6
5555with :
5656# Repository name with owner. For example, actions/checkout
5757# Default: ${{ github.repository }}
@@ -190,15 +190,15 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
190190# # Fetch only the root files
191191
192192` ` ` yaml
193- - uses: actions/checkout@v5
193+ - uses: actions/checkout@v6
194194 with:
195195 sparse-checkout: .
196196` ` `
197197
198198# # Fetch only the root files and `.github` and `src` folder
199199
200200` ` ` yaml
201- - uses: actions/checkout@v5
201+ - uses: actions/checkout@v6
202202 with:
203203 sparse-checkout: |
204204 .github
@@ -208,7 +208,7 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
208208# # Fetch only a single file
209209
210210` ` ` yaml
211- - uses: actions/checkout@v5
211+ - uses: actions/checkout@v6
212212 with:
213213 sparse-checkout: |
214214 README.md
@@ -218,23 +218,23 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
218218# # Fetch all history for all tags and branches
219219
220220` ` ` yaml
221- - uses: actions/checkout@v5
221+ - uses: actions/checkout@v6
222222 with:
223223 fetch-depth: 0
224224` ` `
225225
226226# # Checkout a different branch
227227
228228` ` ` yaml
229- - uses: actions/checkout@v5
229+ - uses: actions/checkout@v6
230230 with:
231231 ref: my-branch
232232` ` `
233233
234234# # Checkout HEAD^
235235
236236` ` ` yaml
237- - uses: actions/checkout@v5
237+ - uses: actions/checkout@v6
238238 with:
239239 fetch-depth: 2
240240- run: git checkout HEAD^
@@ -244,12 +244,12 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
244244
245245` ` ` yaml
246246- name: Checkout
247- uses: actions/checkout@v5
247+ uses: actions/checkout@v6
248248 with:
249249 path: main
250250
251251- name: Checkout tools repo
252- uses: actions/checkout@v5
252+ uses: actions/checkout@v6
253253 with:
254254 repository: my-org/my-tools
255255 path: my-tools
@@ -260,10 +260,10 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
260260
261261` ` ` yaml
262262- name: Checkout
263- uses: actions/checkout@v5
263+ uses: actions/checkout@v6
264264
265265- name: Checkout tools repo
266- uses: actions/checkout@v5
266+ uses: actions/checkout@v6
267267 with:
268268 repository: my-org/my-tools
269269 path: my-tools
@@ -274,12 +274,12 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
274274
275275` ` ` yaml
276276- name: Checkout
277- uses: actions/checkout@v5
277+ uses: actions/checkout@v6
278278 with:
279279 path: main
280280
281281- name: Checkout private tools
282- uses: actions/checkout@v5
282+ uses: actions/checkout@v6
283283 with:
284284 repository: my-org/my-private-tools
285285 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/
292292# # Checkout pull request HEAD commit instead of merge commit
293293
294294` ` ` yaml
295- - uses: actions/checkout@v5
295+ - uses: actions/checkout@v6
296296 with:
297297 ref: ${{ github.event.pull_request.head.sha }}
298298` ` `
@@ -308,7 +308,7 @@ jobs:
308308 build:
309309 runs-on: ubuntu-latest
310310 steps:
311- - uses: actions/checkout@v5
311+ - uses: actions/checkout@v6
312312` ` `
313313
314314# # Push a commit using the built-in token
@@ -319,7 +319,7 @@ jobs:
319319 build:
320320 runs-on: ubuntu-latest
321321 steps:
322- - uses: actions/checkout@v5
322+ - uses: actions/checkout@v6
323323 - run: |
324324 date > generated.txt
325325 # Note: the following account information will not work on GHES
@@ -341,7 +341,7 @@ jobs:
341341 build:
342342 runs-on: ubuntu-latest
343343 steps:
344- - uses: actions/checkout@v5
344+ - uses: actions/checkout@v6
345345 with:
346346 ref: ${{ github.head_ref }}
347347 - run: |