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