@@ -18,6 +18,7 @@ When Git 2.18 or higher is not in your PATH, falls back to the REST API to downl
18
18
- Fetches only a single commit by default
19
19
- Script authenticated git commands
20
20
- Auth token persisted in the local git config
21
+ - Supports SSH
21
22
- Creates a local branch
22
23
- No longer detached HEAD when checking out a branch
23
24
- Improved layout
@@ -116,7 +117,6 @@ Refer [here](https://github.com/actions/checkout/blob/v1/README.md) for previous
116
117
- [Checkout multiple repos (private)](#Checkout-multiple-repos-private)
117
118
- [Checkout pull request HEAD commit instead of merge commit](#Checkout-pull-request-HEAD-commit-instead-of-merge-commit)
118
119
- [Checkout pull request on closed event](#Checkout-pull-request-on-closed-event)
119
- - [Checkout submodules](#Checkout-submodules)
120
120
- [Fetch all tags](#Fetch-all-tags)
121
121
- [Fetch all branches](#Fetch-all-branches)
122
122
- [Fetch all history for all tags and branches](#Fetch-all-history-for-all-tags-and-branches)
@@ -207,20 +207,6 @@ jobs:
207
207
- uses: actions/checkout@v2
208
208
` ` `
209
209
210
- # # Checkout submodules
211
-
212
- ` ` ` yaml
213
- - uses: actions/checkout@v2
214
- - name: Checkout submodules
215
- shell: bash
216
- run: |
217
- # If your submodules are configured to use SSH instead of HTTPS please uncomment the following line
218
- # git config --global url."https://github.com/".insteadOf "[email protected] :"
219
- auth_header="$(git config --local --get http.https://github.com/.extraheader)"
220
- git submodule sync --recursive
221
- git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
222
- ` ` `
223
-
224
210
# # Fetch all tags
225
211
226
212
` ` ` yaml
0 commit comments