From 09b0f81df819f7c0d6447ff82aa10213ae883785 Mon Sep 17 00:00:00 2001 From: Igor Rodionov Date: Wed, 25 Sep 2024 15:50:04 +0300 Subject: [PATCH 1/2] fix: replace context with default var --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index a3969b6..13eb8db 100644 --- a/action.yml +++ b/action.yml @@ -305,7 +305,7 @@ runs: TERRAFORM_OUTPUT_FILE="./terraform-${GITHUB_RUN_ID}-output.txt" tfcmt \ - --config "${{ github.action_path }}/config/atmos_github_summary.yaml" \ + --config "${GITHUB_ACTION_PATH}/config/atmos_github_summary.yaml" \ -var "target:${{ inputs.stack }}-${{ inputs.component }}" \ -var "component:${{ inputs.component }}" \ -var "stack:${{ inputs.stack }}" \ @@ -330,7 +330,7 @@ runs: cat "${TERRAFORM_OUTPUT_FILE}" atmos terraform output ${{ inputs.component }} --stack ${{ inputs.stack }} --skip-init -- -json 1> output_values.json - terraform-docs -c ${{ github.action_path }}/config/tfdocs-config.yaml --output-file ${{ github.workspace }}/atmos-apply-summary.md ./ + terraform-docs -c ${{ github. }}/config/tfdocs-config.yaml --output-file ${{ github.workspace }}/atmos-apply-summary.md ./ sed -i "s#\`\`#![Sensitive](https://img.shields.io/badge/sensitive-c40000?style=for-the-badge)#g" ${{ github.workspace }}/atmos-apply-summary.md sed -i "s#\`\"#\`#g" ${{ github.workspace }}/atmos-apply-summary.md From 7eb54ddd9f99da5f78a199fd2cb35c01cf615c57 Mon Sep 17 00:00:00 2001 From: Igor Rodionov Date: Wed, 25 Sep 2024 15:55:28 +0300 Subject: [PATCH 2/2] Update action.yml --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 13eb8db..157723f 100644 --- a/action.yml +++ b/action.yml @@ -330,7 +330,7 @@ runs: cat "${TERRAFORM_OUTPUT_FILE}" atmos terraform output ${{ inputs.component }} --stack ${{ inputs.stack }} --skip-init -- -json 1> output_values.json - terraform-docs -c ${{ github. }}/config/tfdocs-config.yaml --output-file ${{ github.workspace }}/atmos-apply-summary.md ./ + terraform-docs -c ${GITHUB_ACTION_PATH}/config/tfdocs-config.yaml --output-file ${{ github.workspace }}/atmos-apply-summary.md ./ sed -i "s#\`\`#![Sensitive](https://img.shields.io/badge/sensitive-c40000?style=for-the-badge)#g" ${{ github.workspace }}/atmos-apply-summary.md sed -i "s#\`\"#\`#g" ${{ github.workspace }}/atmos-apply-summary.md