mirror of
https://github.com/DeterminateSystems/magic-nix-cache-action.git
synced 2024-12-26 01:12:17 +01:00
Merge pull request #73 from DeterminateSystems/clarify-log-message
Provide info output for potential missing permissions block
This commit is contained in:
commit
56ad6029ca
3 changed files with 13 additions and 3 deletions
7
dist/index.js
generated
vendored
7
dist/index.js
generated
vendored
|
@ -88421,7 +88421,12 @@ async function netrcPath() {
|
|||
try {
|
||||
await flakeHubLogin(destinedNetrcPath);
|
||||
} catch (e) {
|
||||
core.info("FlakeHub cache disabled.");
|
||||
core.info(
|
||||
"FlakeHub Cache is disabled due to missing or invalid token"
|
||||
);
|
||||
core.info(
|
||||
`If you're signed up for FlakeHub Cache, make sure that your Actions config has a \`permissions\` block with \`id-token\` set to "write" and \`contents\` set to "read"`
|
||||
);
|
||||
core.debug(`Error while logging into FlakeHub: ${e}`);
|
||||
}
|
||||
return destinedNetrcPath;
|
||||
|
|
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
@ -30,7 +30,12 @@ export async function netrcPath(): Promise<string> {
|
|||
try {
|
||||
await flakeHubLogin(destinedNetrcPath);
|
||||
} catch (e) {
|
||||
actionsCore.info("FlakeHub cache disabled.");
|
||||
actionsCore.info(
|
||||
"FlakeHub Cache is disabled due to missing or invalid token",
|
||||
);
|
||||
actionsCore.info(
|
||||
`If you're signed up for FlakeHub Cache, make sure that your Actions config has a \`permissions\` block with \`id-token\` set to "write" and \`contents\` set to "read"`,
|
||||
);
|
||||
actionsCore.debug(`Error while logging into FlakeHub: ${e}`);
|
||||
}
|
||||
return destinedNetrcPath;
|
||||
|
|
Loading…
Reference in a new issue