Skip to content

Commit 74b5b31

Browse files
pascalholthausgreenbonebot
authored andcommitted
Change: self-hosted-runner-cache-mount action set sync and rw on mount
1 parent 86525b5 commit 74b5b31

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

self-hosted-runner-cache-mount/action.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ runs:
2323
sudo apt update
2424
sudo apt install nfs-common -y
2525
sudo mkdir -p "$root_path"
26-
sudo mount -t nfs -o vers=4,sec=sys ${{ inputs.server }}:/ "$root_path"
26+
sudo mount -t nfs -o vers=4,sec=sys,sync,rw ${{ inputs.server }}:/ "$root_path"
2727
sudo mkdir -p "$root_path/${{ github.repository }}"
28-
sudo mkdir -p '${{ inputs.path }}'
29-
sudo mount --bind "$root_path/${{ github.repository }}" '${{ inputs.path }}'
3028
sudo umount "$root_path"
29+
sudo mkdir -p '${{ inputs.path }}'
30+
sudo mount -t nfs -o vers=4,sec=sys,sync,rw ${{ inputs.server }}:/${{ github.repository }} '${{ inputs.path }}'

0 commit comments

Comments
 (0)