name: "Shell Checkout" description: "Checkout a repo using shell" runs: using: "composite" steps: - run: | set -e basicauth=$(echo -n "x-access-token:${{ github.token }}" | base64) git init echo "git config --local http.$GITHUB_SERVER_URL.extraheader \"Authorization: basic [...]\"" git config --local http.$GITHUB_SERVER_URL.extraheader "Authorization: basic ${basicauth}" set -x git remote add origin "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" git fetch --quiet origin "$GITHUB_REF" git checkout "$GITHUB_REF_NAME" shell: bash