Skip to content

Commit a69e694

Browse files
committed
fix: Create destination directory (it it doesn’t exist) before copying files into it
1 parent 96cab59 commit a69e694

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ runs:
2727
- name: Make sub-actions referenceable
2828
working-directory: ${{ github.action_path }}
2929
shell: bash
30-
run: cp -Rf "$(realpath ../)"/* /home/runner/work/_actions/current
30+
run: |
31+
mkdir -p /home/runner/work/_actions/current
32+
cp -Rf "$(realpath ../)"/* /home/runner/work/_actions/current
3133
- name: Restore cached value
3234
uses: ./../../_actions/current/.github/actions/gh-cache/restore
3335
with:

action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ runs:
4343
- name: Make sub-actions referenceable
4444
working-directory: ${{ github.action_path }}
4545
shell: bash
46-
run: cp -Rf "$(realpath ../)"/* /home/runner/work/_actions/current
46+
run: |
47+
mkdir -p /home/runner/work/_actions/current
48+
cp -Rf "$(realpath ../)"/* /home/runner/work/_actions/current
4749
- name: Restore cached results
4850
id: restore
4951
uses: ./../../_actions/current/.github/actions/gh-cache/cache

0 commit comments

Comments
 (0)