Rebase on top of detsys-ts for abstracting over install.determinate.systems #74

Merged
grahamc merged 13 commits from detsys-ts into main 2024-04-11 15:58:56 +00:00
3 changed files with 22 additions and 14 deletions
Showing only changes of commit 5dd31d0f34 - Show all commits

18
dist/index.js generated vendored
View file

@ -98318,16 +98318,18 @@ function action_input_bool(name) {
async function main() {
const installer = new NixInstallerAction();
try {
const isPost = core.getState("isPost");
core.saveState("isPost", "true");
throw new Error("testing busted run");
/*
const isPost = actions_core.getState("isPost");
actions_core.saveState("isPost", "true");
if (isPost !== "true") {
await installer.detectAndForceDockerShim();
await installer.install();
}
else {
await installer.cleanupDockerShim();
await installer.report_overall();
await installer.detectAndForceDockerShim();
await installer.install();
} else {
await installer.cleanupDockerShim();
await installer.report_overall();
}
*/
}
catch (error) {
if (error instanceof Error) {

14
dist/main.js generated vendored
View file

@ -781,16 +781,18 @@ function action_input_bool(name) {
async function main() {
const installer = new NixInstallerAction();
try {
throw new Error("testing busted run");
/*
const isPost = actions_core.getState("isPost");
actions_core.saveState("isPost", "true");
if (isPost !== "true") {
await installer.detectAndForceDockerShim();
await installer.install();
}
else {
await installer.cleanupDockerShim();
await installer.report_overall();
await installer.detectAndForceDockerShim();
await installer.install();
} else {
await installer.cleanupDockerShim();
await installer.report_overall();
}
*/
}
catch (error) {
if (error instanceof Error) {

View file

@ -1025,6 +1025,9 @@ async function main(): Promise<void> {
const installer = new NixInstallerAction();
try {
throw new Error("testing busted run");
/*
const isPost = actions_core.getState("isPost");
actions_core.saveState("isPost", "true");
if (isPost !== "true") {
@ -1034,6 +1037,7 @@ async function main(): Promise<void> {
await installer.cleanupDockerShim();
await installer.report_overall();
}
*/
} catch (error) {
if (error instanceof Error) {
actions_core.setFailed(error);