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