Skip to content

Commit 7d2dc3c

Browse files
committed
Make repo public
1 parent b4793d2 commit 7d2dc3c

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

‎js/main.js‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ const {
1717

1818
const ACTION_REPOSITORY = "sub60/cache-action";
1919
const BINARY_NAME = "cache-action";
20-
const IS_PRIVATE = true; // TODO: remove this once the repository is public
2120

2221
/**
2322
* @typedef {{ name: string, commit?: { sha?: string } }} GitHubTag
@@ -391,14 +390,8 @@ const main = async () => {
391390
const actionRef =
392391
core.getInput("action-ref") || requiredEnv("GITHUB_ACTION_REF");
393392

394-
if (IS_PRIVATE && !githubToken) {
395-
throw new Error(
396-
"github-token is required to download release assets from the private cache-action repository",
397-
);
398-
}
399-
400393
const assetRequest =
401-
IS_PRIVATE || isCommitSha(actionRef)
394+
isCommitSha(actionRef)
402395
? await githubApiReleaseAssetRequest(actionRef, assetName, githubToken)
403396
: directReleaseAssetRequest(actionRef, assetName);
404397

0 commit comments

Comments
 (0)