Skip to content

Commit ae45dcd

Browse files
committed
Fixes screenshot location
1 parent 7b42fca commit ae45dcd

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,12 @@ runs:
6565
run: |
6666
if [ -e "${{ inputs.path }}" ]; then
6767
mkdir -p ".gh-cache-${{ github.run_id }}/$(dirname "${{ inputs.path }}")"
68-
cp -Rf "${{ inputs.path }}" ".gh-cache-${{ github.run_id }}/${{ inputs.path }}"
68+
if [ -d "${{ inputs.path }}" ]; then
69+
mkdir -p ".gh-cache-${{ github.run_id }}/${{ inputs.path }}"
70+
cp -Rf "${{ inputs.path }}/." ".gh-cache-${{ github.run_id }}/${{ inputs.path }}/"
71+
else
72+
cp -Rf "${{ inputs.path }}" ".gh-cache-${{ github.run_id }}/${{ inputs.path }}"
73+
fi
6974
echo "Copied '${{ inputs.path }}' to 'gh-cache' branch"
7075
else
7176
echo "'${{ inputs.path }}' does not exist"

0 commit comments

Comments
 (0)