Files
actions-setup-docker-compose/src/main.ts
2021-08-29 06:39:28 +00:00

17 lines
389 B
TypeScript

import * as core from '@actions/core'
import {install} from './install'
async function run(): Promise<void> {
try {
const version: string = core.getInput('version', {
required: true
})
const commandPath = await install(version)
core.addPath(commandPath)
} catch (error) {
core.setFailed(error instanceof Error ? error.message : 'Unknown error')
}
}
run()