From b4d3a74f3a696cf1f8afb5319de42576cc38b679 Mon Sep 17 00:00:00 2001 From: dey4ss <27929897+dey4ss@users.noreply.github.com> Date: Tue, 10 Sep 2024 17:42:34 +0200 Subject: [PATCH 1/2] test --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c6741087..dbfd45c9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,7 +59,7 @@ jobs: apt-get update apt-get install -y git git config --global --add safe.directory '*' - git clone "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" . + git clone $(awk -v a=${{github.event.pull_request.head.repo.clone_url}} -v b=${{github.repositoryUrl}} 'BEGIN { if (a == "") { print b } else { print a } }') . git checkout $GITHUB_HEAD_REF - name: Setup (macOS) From e233ec1303aae12d9b86391fb4030cb5ba967428 Mon Sep 17 00:00:00 2001 From: dey4ss <27929897+dey4ss@users.noreply.github.com> Date: Wed, 11 Sep 2024 14:48:59 +0200 Subject: [PATCH 2/2] version that works for branch update --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dbfd45c9..cb9a7daf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,7 +59,7 @@ jobs: apt-get update apt-get install -y git git config --global --add safe.directory '*' - git clone $(awk -v a=${{github.event.pull_request.head.repo.clone_url}} -v b=${{github.repositoryUrl}} 'BEGIN { if (a == "") { print b } else { print a } }') . + git clone $(awk -v a=${{github.event.pull_request.head.repo.clone_url}} -v b="${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" 'BEGIN { if (a == "") { print b } else { print a } }') . git checkout $GITHUB_HEAD_REF - name: Setup (macOS)