Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ jobs:
id: test-checkout
with:
checkout: true
checkout-fetch-depth: 0
checkout-ref: main
checkout-submodules: false
checkout-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -136,6 +135,9 @@ jobs:
echo "Checkout Commit: ${{ steps.test-checkout.outputs.checkout-commit }}"
git_value=$(git log -1 --oneline)
echo "Git Commit: ${git_value}"
shallow_value=$(git rev-parse --is-shallow-repository)
echo "Is Shallow Repository: ${shallow_value}"
test "${shallow_value}" = "true"

test-setup-java:
name: Test Setup Java Action
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Common steps for initializing a job for GitHub actions. This composite action co
| checkout | Whether to checkout the repository | No | - | `true`/`false` |
| checkout-ref | The branch, tag or SHA to checkout | No | - | any `branch`/`tag`/`SHA` |
| checkout-token | Personal access token (PAT) used to fetch the repository | No | - | `Token` used for checkout |
| checkout-fetch-depth | Depth of commit history to fetch | No | 0 | `0` (full)/`1`/`2`/... |
| checkout-fetch-depth | Depth of commit history to fetch | No | 1 | `0` (full)/`1`/`2`/... |
| checkout-submodules | Whether to fetch submodules | No | false | `true`/`false`/`recursive` |

**Java**
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ inputs:
checkout-fetch-depth:
description: 'Depth of commit history to fetch'
required: false
default: '0'
default: '1'
checkout-submodules:
description: 'Whether to checkout submodules (true/false/recursive)'
default: 'false'
Expand Down
Loading