mirror of
https://github.com/opentofu/setup-opentofu.git
synced 2026-11-26 18:30:54 +01:00
21 lines
443 B
JavaScript
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);
|
|
}
|
|
})();
|