Skip to content

Commit

Permalink
fix conditional result for APPLY_SUCCEEDED
Browse files Browse the repository at this point in the history
  • Loading branch information
milldr committed Feb 22, 2024
1 parent 1282b8d commit f5c9fcb
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,9 @@ runs:
- name: Check If GitHub Actions is Enabled For Component
shell: bash
run: |
if [[ "${{ steps.atmos-apply.outputs.status != 'succeeded' }}" ]]; then
echo "APPLY_SUCCEEDED=true" >> $GITHUB_ENV
else
echo "APPLY_SUCCEEDED=false" >> $GITHUB_ENV
fi
apply_succeeded=${{ steps.atmos-apply.outputs.status != 'succeeded' }}
echo "APPLY_SUCCEEDED: $apply_succeeded"
echo "APPLY_SUCCEEDED=$apply_succeeded" >> $GITHUB_ENV
- name: Post Comment
if: env.ACTION == 'remediate'
Expand Down Expand Up @@ -188,4 +186,4 @@ runs:
...repository,
issue_number: issueNumber,
body: body
});
});

0 comments on commit f5c9fcb

Please sign in to comment.