Skip to content

Commit bd5d0e3

Browse files
committed
Better styler safety
1 parent a2b4b40 commit bd5d0e3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/style/action.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@ runs:
2424
restore-keys: |
2525
${{ runner.os }}-2-
2626
27-
- name: Show cache
27+
- name: Imprint run ID
2828
if: ${{ steps.check.outputs.scope }}
2929
run: |
30-
ls -l ~/.cache/R/R.cache
31-
ls -l ~/.cache/R/R.cache/styler
32-
gdu -s --inodes ~/.cache/R/R.cache/styler/* || du -s --inodes ~/.cache/R/R.cache/styler/*
30+
mkdir -p ~/.cache/R/R.cache/styler
31+
touch ~/.cache/R/R.cache/${{ github.run_id }}
3332
shell: bash
3433

35-
- name: Imprint run ID
34+
- name: Show cache
3635
if: ${{ steps.check.outputs.scope }}
3736
run: |
38-
touch ~/.cache/R/R.cache/${{ github.run_id }}
37+
ls -l ~/.cache/R/R.cache
38+
ls -l ~/.cache/R/R.cache/styler
3939
shell: bash
4040

4141
- name: Enable styler cache

0 commit comments

Comments
 (0)