Commit 3190c71
fix: generate correct URLs for assets in private repos
Use `https://github.com/{repo}/blob/{branch}/{filename}?raw=true` format
instead of `https://raw.githubusercontent.com/{repo}/{branch}/{filename}`
for github.com asset uploads. The blob URL with `?raw=true` works for both
public and private repos, while the raw.githubusercontent.com URL only works
for public repos.
Fixes #<issue>
Co-authored-by: dsyme <7204669+dsyme@users.noreply.github.com>1 parent 5fb3a81 commit 3190c71
3 files changed
Lines changed: 6 additions & 5 deletions
File tree
- actions/setup/js
- docs/src/content/docs/reference
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
153 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
884 | 884 | | |
885 | 885 | | |
886 | 886 | | |
887 | | - | |
| 887 | + | |
888 | 888 | | |
889 | 889 | | |
890 | 890 | | |
| |||
0 commit comments