Set main as the default branch (#527)
* set main as the default branch * revert change to tool-cache default branch * use versions where applicable
This commit is contained in:
1 parent
4a7f8bfc34
commit
e88b63c1fb
3 files changed
+5
-5
No files matched your search
@@ -104,7 +104,7 @@ test('restore with gzip compressed cache found', async () => {
|
|||||||
|
|
||||||
const cacheEntry: ArtifactCacheEntry = {
|
const cacheEntry: ArtifactCacheEntry = {
|
||||||
cacheKey: key,
|
cacheKey: key,
|
||||||
scope: 'refs/heads/master',
|
scope: 'refs/heads/main',
|
||||||
archiveLocation: 'www.actionscache.test/download'
|
archiveLocation: 'www.actionscache.test/download'
|
||||||
}
|
}
|
||||||
const getCacheMock = jest.spyOn(cacheHttpClient, 'getCacheEntry')
|
const getCacheMock = jest.spyOn(cacheHttpClient, 'getCacheEntry')
|
||||||
@@ -166,7 +166,7 @@ test('restore with zstd compressed cache found', async () => {
|
|||||||
|
|
||||||
const cacheEntry: ArtifactCacheEntry = {
|
const cacheEntry: ArtifactCacheEntry = {
|
||||||
cacheKey: key,
|
cacheKey: key,
|
||||||
scope: 'refs/heads/master',
|
scope: 'refs/heads/main',
|
||||||
archiveLocation: 'www.actionscache.test/download'
|
archiveLocation: 'www.actionscache.test/download'
|
||||||
}
|
}
|
||||||
const getCacheMock = jest.spyOn(cacheHttpClient, 'getCacheEntry')
|
const getCacheMock = jest.spyOn(cacheHttpClient, 'getCacheEntry')
|
||||||
@@ -223,7 +223,7 @@ test('restore with cache found for restore key', async () => {
|
|||||||
|
|
||||||
const cacheEntry: ArtifactCacheEntry = {
|
const cacheEntry: ArtifactCacheEntry = {
|
||||||
cacheKey: restoreKey,
|
cacheKey: restoreKey,
|
||||||
scope: 'refs/heads/master',
|
scope: 'refs/heads/main',
|
||||||
archiveLocation: 'www.actionscache.test/download'
|
archiveLocation: 'www.actionscache.test/download'
|
||||||
}
|
}
|
||||||
const getCacheMock = jest.spyOn(cacheHttpClient, 'getCacheEntry')
|
const getCacheMock = jest.spyOn(cacheHttpClient, 'getCacheEntry')
|
||||||
|
|||||||
+1
-1
@@ -8,7 +8,7 @@
|
|||||||
"actions",
|
"actions",
|
||||||
"cache"
|
"cache"
|
||||||
],
|
],
|
||||||
"homepage": "https://github.com/actions/toolkit/tree/master/packages/cache",
|
"homepage": "https://github.com/actions/toolkit/tree/main/packages/cache",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "lib/cache.js",
|
"main": "lib/cache.js",
|
||||||
"types": "lib/cache.d.ts",
|
"types": "lib/cache.d.ts",
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import * as util from 'util'
|
|||||||
import {v4 as uuidV4} from 'uuid'
|
import {v4 as uuidV4} from 'uuid'
|
||||||
import {CacheFilename, CompressionMethod} from './constants'
|
import {CacheFilename, CompressionMethod} from './constants'
|
||||||
|
|
||||||
// From https://github.com/actions/toolkit/blob/master/packages/tool-cache/src/tool-cache.ts#L23
|
// From https://github.com/actions/toolkit/blob/main/packages/tool-cache/src/tool-cache.ts#L23
|
||||||
export async function createTempDirectory(): Promise<string> {
|
export async function createTempDirectory(): Promise<string> {
|
||||||
const IS_WINDOWS = process.platform === 'win32'
|
const IS_WINDOWS = process.platform === 'win32'
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user