We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b42fca commit ae45dcdCopy full SHA for ae45dcd
1 file changed
.github/actions/gh-cache/save/action.yml
@@ -65,7 +65,12 @@ runs:
65
run: |
66
if [ -e "${{ inputs.path }}" ]; then
67
mkdir -p ".gh-cache-${{ github.run_id }}/$(dirname "${{ inputs.path }}")"
68
- cp -Rf "${{ inputs.path }}" ".gh-cache-${{ github.run_id }}/${{ inputs.path }}"
+ 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
74
echo "Copied '${{ inputs.path }}' to 'gh-cache' branch"
75
else
76
echo "'${{ inputs.path }}' does not exist"
0 commit comments