import * as core from '@actions/core' ; import { Action , Docker , ImageTag , Input } from './model' ; async function run ( ) { try { Action . checkCompatibility ( ) ; const { dockerfile , workspace , actionFolder } = Action ; const unityVersion = Input . unityVersion ; const baseImage = new ImageTag ( unityVersion , Input . customImage ) ; const actionImage = await Docker . build ( { path : actionFolder , dockerfile , baseImage } ) ; await Docker . run ( actionImage , { workspace , unityVersion } ) ; } catch ( error ) { core . setFailed ( error . message ) ; } } run ( ) ;