From 6e4c7add6a4c9f42168c4eb72adb07b558c827b5 Mon Sep 17 00:00:00 2001 From: islishude Date: Mon, 18 Sep 2023 21:10:34 +0800 Subject: [PATCH] Fix input.default type and change them to string --- README.md | 1 - action.yml | 21 ++++++++++----------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 7e76cde..d3617c3 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,6 @@ When Git 2.18 or higher is not in your PATH, falls back to the REST API to downl # Do a sparse checkout on given patterns. Each pattern should be separated with # new lines - # Default: null sparse-checkout: '' # Specifies whether to use cone-mode when doing a sparse checkout. diff --git a/action.yml b/action.yml index 43d408d..6f1479a 100644 --- a/action.yml +++ b/action.yml @@ -44,36 +44,35 @@ inputs: Whether to perform strict host key checking. When true, adds the options `StrictHostKeyChecking=yes` and `CheckHostIP=no` to the SSH command line. Use the input `ssh-known-hosts` to configure additional hosts. - default: true + default: "true" persist-credentials: description: 'Whether to configure the token or SSH key with the local git config' - default: true + default: "true" path: description: 'Relative path under $GITHUB_WORKSPACE to place the repository' clean: description: 'Whether to execute `git clean -ffdx && git reset --hard HEAD` before fetching' - default: true + default: "true" sparse-checkout: description: > Do a sparse checkout on given patterns. Each pattern should be separated with new lines - default: null sparse-checkout-cone-mode: description: > Specifies whether to use cone-mode when doing a sparse checkout. - default: true + default: "true" fetch-depth: description: 'Number of commits to fetch. 0 indicates all history for all branches and tags.' - default: 1 + default: "1" fetch-tags: description: 'Whether to fetch tags, even if fetch-depth > 0.' - default: false + default: "false" show-progress: description: 'Whether to show progress status output when fetching.' - default: true + default: "true" lfs: description: 'Whether to download Git-LFS files' - default: false + default: "false" submodules: description: > Whether to checkout submodules: `true` to checkout submodules or `recursive` to @@ -82,10 +81,10 @@ inputs: When the `ssh-key` input is not provided, SSH URLs beginning with `git@github.com:` are converted to HTTPS. - default: false + default: "false" set-safe-directory: description: Add repository path as safe.directory for Git global config by running `git config --global --add safe.directory ` - default: true + default: "true" github-server-url: description: The base URL for the GitHub instance that you are trying to clone from, will use environment defaults to fetch from the same instance that the workflow is running from unless specified. Example URLs are https://github.com or https://my-ghes-server.example.com required: false