Skip to content

Commit 6e2daf6

Browse files
committed
Attempt to fix URL handling.
1 parent 0fb003e commit 6e2daf6

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/index.ts

+8-5
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,20 @@ async function setEntry(archive: string, key: string, version: string, runtimeTo
3737
const stats = fs.statSync(archive);
3838
const archiveFileSize = stats.size;
3939

40-
const headers = {
41-
'Authorization': `Bearer ${runtimeToken}`,
42-
'User-Agent': 'actions/cache-4.0.2',
43-
'accept': 'application/json'
44-
};
40+
// const headers = {
41+
// 'Authorization': `Bearer ${runtimeToken}`,
42+
// 'User-Agent': 'actions/cache-4.0.2',
43+
// 'accept': 'application/json'
44+
// };
4545

4646
const request: CreateCacheEntryRequest = {
4747
key,
4848
version
4949
}
5050

51+
process.env['ACTIONS_RESULTS_URL'] = 'https://results-receiver.actions.githubusercontent.com';
52+
process.env['ACTIONS_RUNTIME_TOKEN'] = runtimeToken;
53+
5154
const twirpClient = cacheTwirpClient.internalCacheTwirpClient();
5255

5356
const response = twirpClient.CreateCacheEntry(request);

0 commit comments

Comments
 (0)