Skip to content

Commit

Permalink
fix(get-terraform-dir): Resolve incorrect job summary step being run (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
chris3ware authored Aug 30, 2024
1 parent ac7dc70 commit f261ac4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/get-terraform-dir.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,18 @@ jobs:
**/*.hcl
dir_names: true

- name: Terraform directory summary
if: ${{ steps.get-terraform-sum.outputs.all_changed_files != '[]' }}
- name: Terraform directory summary - changes
if: ${{ steps.get-terraform-sum.outputs.all_changed_files_count != 0 }}
run: |
echo "# :white_check_mark: Terraform file changes detected" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "## Terraform changes have been detected in the following directories:" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
printf '%s\n' ${{ steps.get-terraform-sum.outputs.all_changed_files }} >> $GITHUB_STEP_SUMMARY
- name: Terraform directory summary
if: ${{ steps.get-terraform-sum.outputs.all_changed_files == '[]' }}
- name: Terraform directory summary - no changes
if: ${{ steps.get-terraform-sum.outputs.all_changed_files_count == 0 }}
run: |
echo "# :negative_squared_cross_mark: Terraform file changes not detected" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "Terraform has not been changed." >> $GITHUB_STEP_SUMMARY
echo "Terraform files have not been changed on this run" >> $GITHUB_STEP_SUMMARY

0 comments on commit f261ac4

Please sign in to comment.