diff --git a/README.md b/README.md index 8908c5b..72d46f1 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ or use automatic tools like [Dependabot](https://docs.github.com/en/code-securit |------------------------------|---------------------|---------| | checkout-fetch-depth | fetch-depth | | | checkout-path | path | | +| checkout-ref | ref | | | checkout-persist-credentials | persist-credentials | false | ## setup-java diff --git a/action.yml b/action.yml index 3f6bec4..31aab87 100644 --- a/action.yml +++ b/action.yml @@ -21,6 +21,9 @@ inputs: default: 'false' required: false + checkout-ref: + description: 'The branch, tag, or SHA of the repository to clone' + required: false # java jdk params @@ -80,6 +83,7 @@ runs: fetch-depth: '${{ inputs.checkout-fetch-depth }}' path: '${{ inputs.checkout-path }}' persist-credentials: '${{ inputs.checkout-persist-credentials }}' + ref: '${{ inputs.checkout-ref }}' - uses: actions/setup-java@v3 with: