Initial checkout action
/ test (push) Failing after 3s Details

This commit is contained in:
Michał Rudowicz 2025-02-25 18:34:40 +01:00
parent 131b9181ac
commit 0f25b04d71
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,10 @@
on:
push:
jobs:
test:
runs-on: docker
container:
image: git.hswro.org/fleg/actions-experiments:latest
steps:
- uses: https://codeberg.org/fleg/light-actions/checkout@main
- run: cat README

12
checkout/action.yml Normal file
View File

@ -0,0 +1,12 @@
name: checkout
description: Checkout the git repository.
runs:
using: composite
steps:
- run: |
set -eu
git init
git remote add origin "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}"
git fetch --no-tags --prune --no-recurse-submodules --depth=1 origin "+${GITHUB_SHA}:${GITHUB_REF}"
git checkout --force "${GITHUB_REF}"
shell: sh