Commit 4c4afcc
authored
ci: cache rg/fd binaries with weekly rotation (#208)
## Summary
- Adds `actions/cache@v4` for `.local/bin/rg` and `.local/bin/fd` with
weekly-rotating keys (matches the nightly Neovim cache pattern at lines
161 of `pr-check.yml`)
- Authenticates the `api.github.com/.../releases/latest` calls with
`GITHUB_TOKEN` so we get the per-repo 1000/hr rate limit instead of the
shared 60/hr per-IP unauthenticated limit (this was causing the v0.11.5
`tar: gzip: stdin: not in gzip format` failure on PR #207 when the
unauth IP limit was hit and the API returned a JSON error in place of
the asset URL)
- Replaces `grep | cut | head` URL extraction with `jq` for cleaner JSON
parsing and proper failure modes (`curl -sfL` now exits non-zero on HTTP
errors instead of piping garbage into `tar`)
- Adds `permissions: contents: read` at the workflow level for
defense-in-depth1 parent 7336e59 commit 4c4afcc
1 file changed
Lines changed: 45 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| |||
104 | 107 | | |
105 | 108 | | |
106 | 109 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | 110 | | |
125 | 111 | | |
126 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
127 | 155 | | |
128 | 156 | | |
129 | 157 | | |
| |||
0 commit comments