core-test/module/checkout/action.yml
2026-02-12 21:33:05 +01:00

35 lines
No EOL
1.1 KiB
YAML

# SPDX-License-Identifier: EUPL-1.2
name: "Checkout"
description: "Checkout a Git repository at a particular version"
author: "Louis Seubert"
inputs:
repository:
required: false
description: >
The path to the repository to checkout. Must be accessible with the
pipeline token or publicly. Can be either an HTTPS or SSH URL.
default: "${{ github.server_url }}/${{ github.repository }}.git"
path:
required: false
description: >
The directory to checkout the repository into. If the directory does not
exist, it will be created.
default: "${{ github.workspace }}"
ref:
required: false
description: >
The branch, tag or SHA to checkout. When checking out the repository that
triggered a workflow, this defaults to the reference or SHA for that
event. Otherwise, uses the default branch.
default: "${{ github.ref || github.sha }}"
runs:
using: 'docker'
image: 'docker://code.geekeey.de/actions/core:1.0.0'
args:
- 'checkout'
- '--repository'
- '${{ inputs.repository }}'
- '--path'
- '${{ inputs.path }}'
- '--ref'
- '${{ inputs.ref }}'