From ccd648bd681195a9ab460f3458bd833d04353a86 Mon Sep 17 00:00:00 2001 From: Jonathan Hong <119632588+gjonathanhong@users.noreply.github.com> Date: Tue, 2 Jul 2024 18:11:52 +0000 Subject: [PATCH] Add prefix to checkout path --- .github/actions/load-workflow-variables/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/load-workflow-variables/action.yml b/.github/actions/load-workflow-variables/action.yml index 42f3117..a6e2134 100644 --- a/.github/actions/load-workflow-variables/action.yml +++ b/.github/actions/load-workflow-variables/action.yml @@ -37,7 +37,7 @@ runs: uses: 'actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11' # ratchet:actions/checkout@v4 with: ref: '${{ github.event.repository.default_branch }}' - path: '${{ github.sha }}' + path: 'load-workflow-variables/${{ github.sha }}' sparse-checkout: | ${{ inputs.filepath }} sparse-checkout-cone-mode: 'false' @@ -46,7 +46,7 @@ runs: shell: 'bash' env: WORKING_DIRECTORY: '${{ inputs.working_directory }}' - FILEPATH: '${{ github.sha }}/${{ inputs.filepath }}' + FILEPATH: 'load-workflow-variables/${{ github.sha }}/${{ inputs.filepath }}' FAIL_ON_MISSING: '${{ inputs.fail_on_missing }}' run: |- FILEPATH=$(realpath "${FILEPATH}")