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
+10-27
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
7
7
This action checks-out your repository under `$GITHUB_WORKSPACE`, so your workflow can access it.
8
8
9
-
Only a single commit is fetched by default, for the ref/SHA that triggered the workflow. Set `fetch-depth` to fetch more history. Refer [here](https://help.github.com/en/articles/events-that-trigger-workflows) to learn which commit `$GITHUB_SHA` points to for different events.
9
+
Only a single commit is fetched by default, for the ref/SHA that triggered the workflow. Set `fetch-depth: 0` to fetch all history for all branches and tags. Refer [here](https://help.github.com/en/articles/events-that-trigger-workflows) to learn which commit `$GITHUB_SHA` points to for different events.
10
10
11
11
The auth token is persisted in the local git config. This enables your scripts to run authenticated git commands. The token is removed during post-job cleanup. Set `persist-credentials: false` to opt-out.
12
12
@@ -110,16 +110,22 @@ Refer [here](https://github.com/actions/checkout/blob/v1/README.md) for previous
110
110
111
111
# Scenarios
112
112
113
+
- [Fetch all history for all tags and branches](#Fetch-all-history-for-all-tags-and-branches)
113
114
- [Checkout a different branch](#Checkout-a-different-branch)
114
115
- [Checkout HEAD^](#Checkout-HEAD)
115
116
- [Checkout multiple repos (side by side)](#Checkout-multiple-repos-side-by-side)
0 commit comments