checkout/action.yml
2024-11-01 23:43:10 +01:00

23 lines
793 B
YAML

# SPDX-License-Identifier: EUPL-1.2
name: "Checkout"
description: "Checkout a Git repository at a particular version"
author: "Louis Seubert"
inputs:
repository:
description: >
The path to the repository to checkout. Must be accessible with the
pipeline token on publiclly
default: "${{ github.server_url }}/${{ github.repository }}.git"
path:
description: >
Relative path under $GITHUB_WORKSPACE to place the repository
default: "."
ref:
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: 'Dockerfile'