mirror of
https://github.com/s4u/setup-maven-action.git
synced 2026-02-19 00:00:30 +08:00
Use actions/checkout
This commit is contained in:
13
action.yml
13
action.yml
@ -7,6 +7,11 @@ branding:
|
||||
|
||||
inputs:
|
||||
|
||||
# checkout
|
||||
checkout-fetch-depth:
|
||||
description: 'Number of commits to fetch'
|
||||
required: false
|
||||
|
||||
# java jdk params
|
||||
|
||||
java-version:
|
||||
@ -60,6 +65,14 @@ runs:
|
||||
|
||||
steps:
|
||||
|
||||
- run: echo "::group::Checkout"
|
||||
shell: bash
|
||||
- uses: actions/checkout@v2.3.4
|
||||
with:
|
||||
fetch-depth: '${{ inputs.checkout-fetch-depth }}'
|
||||
- run: echo "::endgroup::"
|
||||
shell: bash
|
||||
|
||||
- run: echo "::group::Setup Java"
|
||||
shell: bash
|
||||
- uses: actions/setup-java@v2.3.0
|
||||
|
||||
Reference in New Issue
Block a user