Skip to content

Commit 81cd671

Browse files
committed
fix: Copy .github/actions directory contents
1 parent 7751aa6 commit 81cd671

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,9 @@ runs:
2828
working-directory: ${{ github.action_path }}
2929
shell: bash
3030
run: |
31-
pwd
32-
ls -ltra .
33-
mkdir -p /home/runner/work/_actions/current
34-
cp -Rf "$(realpath ../)"/* /home/runner/work/_actions/current
35-
ls -ltra /home/runner/work/_actions/current
31+
mkdir -p /home/runner/work/_actions/current/.github/actions
32+
cp -Rf .github/actions/* /home/runner/work/_actions/current/.github/actions
33+
ls -ltra /home/runner/work/_actions/current/.github/actions
3634
- name: Restore cached value
3735
uses: ./../../_actions/current/.github/actions/gh-cache/restore
3836
with:

action.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,9 @@ runs:
4444
working-directory: ${{ github.action_path }}
4545
shell: bash
4646
run: |
47-
pwd
48-
ls -ltra .
49-
mkdir -p /home/runner/work/_actions/current
50-
cp -Rf "$(realpath ../)"/* /home/runner/work/_actions/current
51-
ls -ltra /home/runner/work/_actions/current
47+
mkdir -p /home/runner/work/_actions/current/.github/actions
48+
cp -Rf .github/actions/* /home/runner/work/_actions/current/.github/actions
49+
ls -ltra /home/runner/work/_actions/current/.github/actions
5250
- name: Restore cached results
5351
id: restore
5452
uses: ./../../_actions/current/.github/actions/gh-cache/cache

0 commit comments

Comments
 (0)