Commit a491c4a
CI: don't let cached pirate.html overwrite the committed one
The 'Restore deployed dashboards' actions/cache step runs after
checkout and replaces cloudflare/public/*.html with whatever was
in the previous run's cache. That meant a freshly-committed
pirate.html (or index/404) would silently lose to a stale cached
copy, with no error.
Two-part fix:
- Exclude the committed dashboards from the cache path (! patterns),
so future cache saves don't re-store them.
- After the restore, force git checkout of the three committed
dashboards, which handles the existing cache (which still has
the stale copies) and any future drift.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 373f233 commit a491c4a
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
63 | 69 | | |
64 | 70 | | |
65 | 71 | | |
66 | 72 | | |
67 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
68 | 77 | | |
69 | 78 | | |
70 | 79 | | |
71 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
72 | 88 | | |
73 | 89 | | |
74 | 90 | | |
| |||
0 commit comments