Skip to content

Commit 9c9c79a

Browse files
authored
fix: filter out 'Switched to workspace' message in terraform output (#68)
1 parent 101b203 commit 9c9c79a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ runs:
417417
set -e
418418
419419
cat "${TERRAFORM_OUTPUT_FILE}"
420-
atmos terraform output ${{ inputs.component }} --stack ${{ inputs.stack }} --skip-init -- -json 1> output_values.json
420+
atmos terraform output ${{ inputs.component }} --stack ${{ inputs.stack }} --skip-init -- -json | grep -v 'Switched to workspace' 1> output_values.json
421421
terraform-docs -c ${GITHUB_ACTION_PATH}/config/tfdocs-config.yaml --output-file ${{ github.workspace }}/atmos-apply-summary.md ./
422422
423423
sed -i "s#\`<sensitive>\`#![Sensitive](https://img.shields.io/badge/sensitive-c40000?style=for-the-badge)#g" ${{ github.workspace }}/atmos-apply-summary.md

0 commit comments

Comments
 (0)