Skip to content

Commit 1532def

Browse files
committed
update dist
1 parent a8dc1ce commit 1532def

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

dist/index.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32961,7 +32961,9 @@ async function getContentsDownloadUrl(localFilePath, token) {
3296132961
const { owner, repo } = context.repo;
3296232962
// Remove leading slash if present
3296332963
const cleanPath = localFilePath.startsWith('/') ? localFilePath.slice(1) : localFilePath;
32964-
const url = `https://api.github.com/repos/${owner}/${repo}/contents/${cleanPath}`;
32964+
const query = `ref=${encodeURIComponent(context.ref)}`;
32965+
const url = `https://api.github.com/repos/${owner}/${repo}/contents/${cleanPath}?${query}`;
32966+
debug(`using download url ${url}`);
3296532967
try {
3296632968
const response = await fetch(url, {
3296732969
method: "GET",

dist/index.mjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)