Files
setup-opentofu/index.js
T

21 lines
443 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* Copyright (c) OpenTofu
* SPDX-License-Identifier: MPL-2.0
*/
import { setFailed, debug } from '@actions/core';
import setup from './lib/setup-tofu.js';
import { getErrorMessage, getErrorDetail } from './lib/error-utils.js';
(async () => {
try {
await setup();
} catch (error) {
const message = getErrorMessage(error);
debug(getErrorDetail(error));
setFailed(message);
}
})();