Suppress some sensitive output and reduce noise on git-fetch
Some checks failed
Self Test / test (push) Failing after 3s

This commit is contained in:
Alessio 2025-06-01 11:35:53 -04:00
parent 6ebae2dfa2
commit 122dccb6de

View File

@ -5,12 +5,14 @@ runs:
using: "composite"
steps:
- run: |
set -x
set -e
basicauth=$(echo -n "x-access-token:${{ github.token }}" | base64)
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"
basicauth=$(echo -n "x-access-token:${{ github.token }}" | base64)
git config --local http.$GITHUB_SERVER_URL.extraheader "AUTHORIZATION: basic ${basicauth}"
git fetch origin "$GITHUB_REF"
git fetch --quiet origin "$GITHUB_REF"
git checkout "$GITHUB_REF_NAME"
shell: bash