Skip to content

Commit be71008

Browse files
committed
#43 Terraform Planステップのエラーハンドリングを改善し、EXIT_CODEの設定を修正
1 parent 6e93784 commit be71008

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/tfdrift.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ jobs:
3535
id: plan
3636
run: |
3737
cd example/actions/terraform
38-
terraform plan -detailed-exitcode -input=false || EXIT_CODE=$?
39-
echo "exit_code=${EXIT_CODE:-0}" >> $GITHUB_OUTPUT
38+
terraform plan -detailed-exitcode -input=false
39+
EXIT_CODE=$?
40+
echo "exit_code=$EXIT_CODE" >> $GITHUB_OUTPUT
4041
continue-on-error: true
4142

4243
- name: Send SNS Notification on Plan Failure

0 commit comments

Comments
 (0)