fix test
Some checks failed
/ test_checkout (push) Failing after 2m9s

This commit is contained in:
Jean-Marie Mineau 2024-03-13 17:44:21 +01:00
parent e4f417a8ff
commit 99fd0c09a7
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2

View file

@ -5,6 +5,11 @@ jobs:
container: container:
image: rust:slim-bookworm image: rust:slim-bookworm
steps: steps:
- run: |
echo "git remote add origin ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}"
TOKEN=$(echo -n "x-access-token:${GITHUB_TOKEN}" | base64)
echo "git -c http.extraHeader=Authorization: Basic ${TOKEN} push origin -d pages"
echo "git -c http.extraHeader=Authorization: Basic ${TOKEN} push -u origin pages"
- run: apt-get update -y && apt-get install -y nodejs git curl - run: apt-get update -y && apt-get install -y nodejs git curl
- run: | - run: |
curl -L https://github.com/trunk-rs/trunk/releases/download/v0.19.1/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf- curl -L https://github.com/trunk-rs/trunk/releases/download/v0.19.1/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf-
@ -15,7 +20,7 @@ jobs:
- run: | - run: |
cd dist cd dist
git init git init
git remote add origin "${GITHUB_REPOSITORY}/${GITHUB_REPOSITORY_OWNER}" git remote add origin "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}"
TOKEN=$(echo -n "x-access-token:${GITHUB_TOKEN}" | base64) TOKEN=$(echo -n "x-access-token:${GITHUB_TOKEN}" | base64)
git -c http.extraHeader="Authorization: Basic ${TOKEN}" push origin -d pages git -c http.extraHeader="Authorization: Basic ${TOKEN}" push origin -d pages
git checkout -b pages git checkout -b pages