From 15cf2b15a965a670235a63a4a7bf3a01a293daff Mon Sep 17 00:00:00 2001 From: Siva Somayyajula Date: Mon, 15 Jul 2024 13:45:17 -0400 Subject: [PATCH 1/3] absolute path for index.js --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 393d028..d236136 100644 --- a/action.yml +++ b/action.yml @@ -17,7 +17,7 @@ runs: - uses: actions/setup-node@v4 with: node-version: 16 - - run: node dist/index.js + - run: node ${{ github.workspace }}/dist/index.js shell: bash env: INPUT_DAFNY-VERSION: ${{ inputs.dafny-version }} From f58a847c0fd51f1be2287fe8b3c87fc7f8cdae67 Mon Sep 17 00:00:00 2001 From: Siva Somayyajula Date: Tue, 16 Jul 2024 13:49:44 -0400 Subject: [PATCH 2/3] fix --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index d236136..ea9bf76 100644 --- a/action.yml +++ b/action.yml @@ -17,7 +17,7 @@ runs: - uses: actions/setup-node@v4 with: node-version: 16 - - run: node ${{ github.workspace }}/dist/index.js + - run: node ${{ github.action_path }}/dist/index.js shell: bash env: INPUT_DAFNY-VERSION: ${{ inputs.dafny-version }} From f0f994c6c5576e678b158f3a6ff640763b6f8b29 Mon Sep 17 00:00:00 2001 From: Siva Somayyajula Date: Tue, 16 Jul 2024 14:03:30 -0400 Subject: [PATCH 3/3] using env variable instead --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index ea9bf76..ab9509c 100644 --- a/action.yml +++ b/action.yml @@ -17,7 +17,7 @@ runs: - uses: actions/setup-node@v4 with: node-version: 16 - - run: node ${{ github.action_path }}/dist/index.js + - run: node $GITHUB_ACTION_PATH/dist/index.js shell: bash env: INPUT_DAFNY-VERSION: ${{ inputs.dafny-version }}