Skip to content

Commit 33b9988

Browse files
committed
fix(gh-cache/save): Make destination directory(s) before copying files there
1 parent db62980 commit 33b9988

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/actions/gh-cache/save/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ runs:
6464
shell: bash
6565
run: |
6666
if [ -f "${{ inputs.path }}" ]; then
67+
mkdir -p ".gh-cache-${{ github.run_id }}/$(dirname "${{ inputs.path }}")"
6768
cp -Rf "${{ inputs.path }}" ".gh-cache-${{ github.run_id }}/${{ inputs.path }}"
6869
echo "Copied '${{ inputs.path }}' to 'gh-cache' branch"
6970
fi

0 commit comments

Comments
 (0)