From 65ab965402135243e89ecda136e6b275e5b79de5 Mon Sep 17 00:00:00 2001 From: kazufumi-nishida Date: Tue, 17 Sep 2024 09:54:06 +0900 Subject: [PATCH 1/2] Add intentional bug --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 0aaab71..ec923f7 100644 --- a/action.yml +++ b/action.yml @@ -17,6 +17,6 @@ runs: steps: - id: get-terraform-version run: | - result=$(${{ github.action_path }}/src/main.sh ${{ inputs.path }}) + result=$(${{ GITHUB_ACTION_PATH }}/src/main.sh ${{ inputs.path }}) echo "terraform-version=$result" >> $GITHUB_OUTPUT shell: bash From ff6829ef007c75b0e3ed8001465854ece1312dac Mon Sep 17 00:00:00 2001 From: kazufumi-nishida Date: Tue, 17 Sep 2024 10:13:37 +0900 Subject: [PATCH 2/2] Add workaround for Self Hosted Runner --- action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index ec923f7..61bc271 100644 --- a/action.yml +++ b/action.yml @@ -17,6 +17,7 @@ runs: steps: - id: get-terraform-version run: | - result=$(${{ GITHUB_ACTION_PATH }}/src/main.sh ${{ inputs.path }}) + # GITHUB_ACTION_PATH reason https://github.com/bigwheel/get-terraform-version-action/issues/2 + result=$(${GITHUB_ACTION_PATH}/src/main.sh ${{ inputs.path }}) echo "terraform-version=$result" >> $GITHUB_OUTPUT shell: bash