From d27136271ba7fec74b1ee8f6ead6d7f2e20c1b72 Mon Sep 17 00:00:00 2001 From: Max Aigner Date: Thu, 14 Dec 2023 14:42:06 +0100 Subject: [PATCH] Update main.ts if you run that script using a windows runner in github workflows, then it cannot create symlinks because in windows you need admin rights to do so. github does not provide the runner with such permisions. therefore the symlink simply does not work. It should- however - work when you directly set the environment variable to the path of th executable. I hope I did not miss, why those symlinks were set in the first place and that they are not needed somewhere else? --- src/main.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.ts b/src/main.ts index 4c2c37a..657c8db 100644 --- a/src/main.ts +++ b/src/main.ts @@ -263,10 +263,10 @@ async function run(platform: Platform): Promise { // Add environment variables core.startGroup(`🔧 Adding environment variables...`) - core.exportVariable('GODOT', godotAlias) - core.info(` GODOT=${godotAlias}`) - core.exportVariable('GODOT4', godotAlias) - core.info(` GODOT4=${godotAlias}`) + core.exportVariable('GODOT', godotExecutable) + core.info(` GODOT=${godotExecutable}`) + core.exportVariable('GODOT4', godotExecutable) + core.info(` GODOT4=${godotExecutable}`) core.info(`✅ Environment variables added`) core.endGroup()