Skip to content

Commit 488a9ac

Browse files
committed
Test cache workflow with permissions
1 parent 31cd3e5 commit 488a9ac

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Test Workflow
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- "main"
7+
8+
jobs:
9+
actionlint:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: "Restore result cache"
13+
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
14+
with:
15+
path: README.md
16+
key: "result-cache-v1-${{ github.run_id }}"
17+
restore-keys: |
18+
result-cache-v1-
19+
20+
- run: "cat README.md"
21+
- run: "echo blabla >> README.md"
22+
23+
- name: "Save result cache"
24+
uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
25+
with:
26+
path: README.md
27+
key: "result-cache-v1-${{ github.run_id }}"

0 commit comments

Comments
 (0)