From 1a17cd20ffd795d543640be24064f89468beaff1 Mon Sep 17 00:00:00 2001 From: Dominik Date: Sat, 23 Dec 2023 02:24:18 +0100 Subject: [PATCH] simplify Signed-off-by: Dominik --- .github/workflows/build_and_test.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_and_test.yaml b/.github/workflows/build_and_test.yaml index d179d5ed9..9943e5e88 100644 --- a/.github/workflows/build_and_test.yaml +++ b/.github/workflows/build_and_test.yaml @@ -56,14 +56,13 @@ jobs: restore-keys: | compile-${{ env.branch_name_for_cache }}- compile- - - name: Checkout `${{ env.CI_REPO }}` (to only get the `.ci/` directory if reusable workflow mode, see https://stackoverflow.com/a/74123003/1168315) + - name: Checkout `${{ env.CI_REPO }}` to `ci-repo/` (for reusable workflow mode, see https://stackoverflow.com/a/74123003/1168315) uses: actions/checkout@v4 with: path: ci-repo repository: ${{ env.CI_REPO }} ref: CI/reusable-workflow # TODO get reference in general, see https://stackoverflow.com/questions/74784735 resp. https://github.com/actions/toolkit/issues/1264 - - name: Checkout repo ${{ inputs.repository }} - if: ${{ github.repository != env.CI_REPO }} + - name: Checkout repo ${{ inputs.repository }} to `source/` uses: actions/checkout@v4 with: path: source