diff --git a/action.yml b/action.yml index 55a0d62..87ed9d1 100644 --- a/action.yml +++ b/action.yml @@ -7,11 +7,11 @@ runs: - 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 init git remote add origin "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" git fetch --quiet origin "$GITHUB_REF" git checkout "$GITHUB_REF_NAME"