This repository contains an action that will checkout a git repository.
  • Shell 57.8%
  • Prolog 42.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Julien Dessaux 4a832de983
All checks were successful
main / test (push) Successful in 4s
chore(CI): add yamllint
2026-11-10 17:49:39 +01:00
.forgejo/workflows feat(action): add inputs to customize what to checkout where 2026-11-10 17:02:10 +01:00
.yamllint chore(CI): add yamllint 2026-11-10 17:49:39 +01:00
action.yaml chore(CI): add yamllint 2026-11-10 17:49:39 +01:00
CHANGELOG.md feat(action): add inputs to customize what to checkout where 2026-11-10 17:02:10 +01:00
checkout.sh feat(action): add inputs to customize what to checkout where 2026-11-10 17:02:10 +01:00
LICENSE feat(action): initial import 2026-04-19 14:53:58 +02:00
make.pl feat(action): add inputs to customize what to checkout where 2026-11-10 17:02:10 +01:00
README.md feat(action): add inputs to customize what to checkout where 2026-11-10 17:02:10 +01:00

Forgejo action checkout

This repository contains an action that will checkout a git repository.

Requirements

  • A POSIX sh, with the base64, git and tr commands 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 }}'