Changes for README.md: 42 added lines, 30 removed lines.
Original line number
Diff line number
Diff line
[](https://github.com/actions/checkout/actions/workflows/test.yml)
# Checkout V5
Checkout v5 now supports Node.js 24
# Checkout V4
This action checks-out your repository under `$GITHUB_WORKSPACE`, so your workflow can access it.
@@ -36,7 +40,7 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
<!-- start usage -->
```yaml
-uses:actions/checkout@v4
-uses:actions/checkout@v5
with:
# Repository name with owner. For example, actions/checkout
# Default: ${{ github.repository }}
@@ -149,24 +153,32 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
# Scenarios
-[Fetch only the root files](#Fetch-only-the-root-files)
-[Fetch only the root files and `.github` and `src` folder](#Fetch-only-the-root-files-and-github-and-src-folder)
-[Fetch only a single file](#Fetch-only-a-single-file)
-[Fetch all history for all tags and branches](#Fetch-all-history-for-all-tags-and-branches)
-[Checkout a different branch](#Checkout-a-different-branch)
-[Checkout HEAD^](#Checkout-HEAD)
-[Checkout multiple repos (side by side)](#Checkout-multiple-repos-side-by-side)