checkout/action.yml

24 lines
793 B
YAML
Raw Normal View History

2024-03-19 20:37:23 +00:00
# SPDX-License-Identifier: EUPL-1.2
name: "Checkout"
description: "Checkout a Git repository at a particular version"
2024-11-01 22:41:40 +00:00
author: "Louis Seubert"
2024-03-19 20:37:23 +00:00
inputs:
repository:
description: >
2024-11-01 22:41:40 +00:00
The path to the repository to checkout. Must be accessible with the
pipeline token on publiclly
default: "${{ github.server_url }}/${{ github.repository }}.git"
2024-03-19 20:37:23 +00:00
path:
description: >
Relative path under $GITHUB_WORKSPACE to place the repository
2024-11-01 22:41:40 +00:00
default: "."
2024-03-19 20:37:23 +00:00
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
2024-11-01 22:41:40 +00:00
event. Otherwise, uses the default branch.
2024-03-19 20:37:23 +00:00
default: ${{ github.ref || github.sha }}
runs:
2024-11-01 22:41:40 +00:00
using: 'docker'
image: 'Dockerfile'