Skip to content

Commit bc9f9f5

Browse files
owineclaude
andcommitted
Fix cache keys for reusable workflow context
- Fix Tailscale cache key to use repository_owner and run_number instead of full repository path - Simplify deployment tools cache key to use version identifier instead of hashFiles - Resolve issues with cache keys when workflow is called from other repositories - Shorter cache keys to avoid GitHub Actions length limits 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ffe8ece commit bc9f9f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,9 @@ jobs:
201201
path: |
202202
~/.cache/tailscale
203203
/var/lib/tailscale
204-
key: tailscale-${{ runner.os }}-${{ github.repository }}-${{ github.run_id }}
204+
key: tailscale-${{ runner.os }}-${{ github.repository_owner }}-${{ github.run_number }}
205205
restore-keys: |
206-
tailscale-${{ runner.os }}-${{ github.repository }}-
206+
tailscale-${{ runner.os }}-${{ github.repository_owner }}-
207207
tailscale-${{ runner.os }}-
208208
209209
- name: Cache deployment tools
@@ -213,7 +213,7 @@ jobs:
213213
~/.cache/pip
214214
~/.cache/docker
215215
~/.ssh
216-
key: deploy-tools-${{ runner.os }}-${{ hashFiles('.github/workflows/deploy.yml') }}
216+
key: deploy-tools-${{ runner.os }}-v1
217217
restore-keys: |
218218
deploy-tools-${{ runner.os }}-
219219

0 commit comments

Comments
 (0)