From a9b9208f6ce3cdedf7a65e376b5eaaa6a2e4e83e Mon Sep 17 00:00:00 2001 From: Lukas Burgholzer Date: Tue, 15 Aug 2023 01:57:36 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20node=20action=20path=20in?= =?UTF-8?q?=20action.yml=20(#221)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed the node path in Github action from a fixed path to a dynamic path. This ensures that the action runs correctly irrespective of the current working directory and project it is run in. Signed-off-by: burgholzer --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index a3e5e96..1f742ab 100644 --- a/action.yml +++ b/action.yml @@ -28,7 +28,7 @@ runs: - name: Action id: action run: | - node dist/index.js + node ${{ github.action_path }}/dist/index.js echo "{z3-root}={value1}" >> $GITHUB_OUTPUT shell: ${{ (runner.os == 'Windows' && 'pwsh') || 'bash' }} env: