diff --git a/.forgejo/workflows/test_workflow.yml b/.forgejo/workflows/test_workflow.yml new file mode 100644 index 0000000..67c7ee7 --- /dev/null +++ b/.forgejo/workflows/test_workflow.yml @@ -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.md diff --git a/checkout/action.yml b/checkout/action.yml new file mode 100644 index 0000000..b3b5947 --- /dev/null +++ b/checkout/action.yml @@ -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 \ No newline at end of file