Skip to content

Commit 74e1464

Browse files
committed
fix: Use 'rsync -a' instead of 'cp -Rf' to avoid exiting 1 on 'src and dest are identical (not copied)'
1 parent ec368b7 commit 74e1464

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ runs:
2929
shell: bash
3030
run: |
3131
mkdir -p /home/runner/work/_actions/current/.github/actions
32-
cp -Rf ../../../../.github/actions/* /home/runner/work/_actions/current/.github/actions
32+
rsync -a ../../../../.github/actions/ /home/runner/work/_actions/current/.github/actions/
3333
ls -ltra /home/runner/work/_actions/current/.github/actions
3434
- name: Restore cached value
3535
uses: ./../../_actions/current/.github/actions/gh-cache/restore

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ runs:
4545
shell: bash
4646
run: |
4747
mkdir -p /home/runner/work/_actions/current/.github/actions
48-
cp -Rf .github/actions/* /home/runner/work/_actions/current/.github/actions
48+
rsync -a .github/actions/ /home/runner/work/_actions/current/.github/actions/
4949
ls -ltra /home/runner/work/_actions/current/.github/actions
5050
- name: Restore cached results
5151
id: restore

0 commit comments

Comments
 (0)