ci: discord when -> if

This commit is contained in:
41666 2021-01-12 23:01:04 -05:00
parent 6a5df41a31
commit 14c9993bf6

View file

@ -194,9 +194,7 @@ jobs:
deployment.tfplan deployment.tfplan
- name: Yell Success at Discord - name: Yell Success at Discord
when: success() if: success()
env:
run: | run: |
DATA='{ DATA='{
"embeds": [ "embeds": [
@ -219,7 +217,7 @@ jobs:
curl -X POST -H "content-type: application/json" --data $DATA ${{ secrets.DEPLOYMENT_WEBHOOK_URL }} curl -X POST -H "content-type: application/json" --data $DATA ${{ secrets.DEPLOYMENT_WEBHOOK_URL }}
- name: Yell Failure at Discord - name: Yell Failure at Discord
when: failed() if: failed()
run: | run: |
DATA='{ DATA='{
"embeds": [ "embeds": [