Skip to content

Commit

Permalink
add support for submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsciple committed Mar 5, 2020
1 parent f219062 commit 3577377
Show file tree
Hide file tree
Showing 17 changed files with 914 additions and 219 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -84,6 +84,35 @@ jobs:
shell: bash
run: __test__/verify-lfs.sh

# Submodules false
- name: Submodules false checkout
uses: ./
with:
ref: test-data/v2/submodule
path: submodules-false
- name: Verify submodules false
run: __test__/verify-submodules-false.sh

# Submodules one level
- name: Submodules true checkout
uses: ./
with:
ref: test-data/v2/submodule
path: submodules-true
submodules: true
- name: Verify submodules true
run: __test__/verify-submodules-true.sh

# Submodules recursive
- name: Submodules recursive checkout
uses: ./
with:
ref: test-data/v2/submodule
path: submodules-recursive
submodules: recursive
- name: Verify submodules recursive
run: __test__/verify-submodules-recursive.sh

# Basic checkout using REST API
- name: Remove basic
if: runner.os != 'windows'
Expand Down
5 changes: 5 additions & 0 deletions README.md
Expand Up @@ -70,6 +70,11 @@ Refer [here](https://github.com/actions/checkout/blob/v1/README.md) for previous
# Whether to download Git-LFS files
# Default: false
lfs: ''

# Whether to checkout submodules: `true` to checkout submodules or `recursive` to
# recursively checkout submodules.
# Default: false
submodules: ''
```
<!-- end usage -->

Expand Down

0 comments on commit 3577377

Please sign in to comment.