This repository contains an action that will checkout a git repository.
- Shell 57.8%
- Prolog 42.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .forgejo/workflows | ||
| .yamllint | ||
| action.yaml | ||
| CHANGELOG.md | ||
| checkout.sh | ||
| LICENSE | ||
| make.pl | ||
| README.md | ||
Forgejo action checkout
This repository contains an action that will checkout a git repository.
Requirements
- A POSIX
sh, with thebase64,gitandtrcommands on the runner.
Inputs
| Name | Default | Description |
|---|---|---|
fetch-depth |
1 |
Number of commits to fetch, 0 for full history and tags. |
path |
. |
Relative path under the workspace to checkout into. |
ref |
${{ forgejo.sha }} |
Commit SHA or ref to checkout. |
token |
${{ forgejo.token }} |
Token used to fetch the repository. |
Usage example
- name: 'checkout'
uses: 'https://git.adyxax.org/adyxax.org/action-checkout@1.1.0'
With full history and a custom token:
- name: 'Checkout'
uses: 'https://git.adyxax.org/adyxax.org/action-checkout@1.1.0'
with:
fetch-depth: '0'
token: '${{ secrets.CHECKOUT_TOKEN }}'