From e88b63c1fb34d4205f26e669ba21a6ce120dcfd0 Mon Sep 17 00:00:00 2001 From: Thomas Boop <52323235+thboop@users.noreply.github.com> Date: Tue, 21 Jul 2020 11:33:05 -0400 Subject: [PATCH] Set main as the default branch (#527) * set main as the default branch * revert change to tool-cache default branch * use versions where applicable --- __tests__/restoreCache.test.ts | 6 +++--- package.json | 2 +- src/internal/cacheUtils.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/__tests__/restoreCache.test.ts b/__tests__/restoreCache.test.ts index c8a52ea..5095947 100644 --- a/__tests__/restoreCache.test.ts +++ b/__tests__/restoreCache.test.ts @@ -104,7 +104,7 @@ test('restore with gzip compressed cache found', async () => { const cacheEntry: ArtifactCacheEntry = { cacheKey: key, - scope: 'refs/heads/master', + scope: 'refs/heads/main', archiveLocation: 'www.actionscache.test/download' } const getCacheMock = jest.spyOn(cacheHttpClient, 'getCacheEntry') @@ -166,7 +166,7 @@ test('restore with zstd compressed cache found', async () => { const cacheEntry: ArtifactCacheEntry = { cacheKey: key, - scope: 'refs/heads/master', + scope: 'refs/heads/main', archiveLocation: 'www.actionscache.test/download' } const getCacheMock = jest.spyOn(cacheHttpClient, 'getCacheEntry') @@ -223,7 +223,7 @@ test('restore with cache found for restore key', async () => { const cacheEntry: ArtifactCacheEntry = { cacheKey: restoreKey, - scope: 'refs/heads/master', + scope: 'refs/heads/main', archiveLocation: 'www.actionscache.test/download' } const getCacheMock = jest.spyOn(cacheHttpClient, 'getCacheEntry') diff --git a/package.json b/package.json index 630229d..c41de86 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "actions", "cache" ], - "homepage": "https://github.com/actions/toolkit/tree/master/packages/cache", + "homepage": "https://github.com/actions/toolkit/tree/main/packages/cache", "license": "MIT", "main": "lib/cache.js", "types": "lib/cache.d.ts", diff --git a/src/internal/cacheUtils.ts b/src/internal/cacheUtils.ts index 0628ffa..bdcef88 100644 --- a/src/internal/cacheUtils.ts +++ b/src/internal/cacheUtils.ts @@ -9,7 +9,7 @@ import * as util from 'util' import {v4 as uuidV4} from 'uuid' 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 { const IS_WINDOWS = process.platform === 'win32'