Browse Source

treat input success and failure as boolean

Contributes to CURA-9365
j.spijker@ultimaker.com 2 years ago
parent
commit
24f1170c29
1 changed files with 2 additions and 2 deletions
  1. 2 2
      .github/workflows/notify.yml

+ 2 - 2
.github/workflows/notify.yml

@@ -32,7 +32,7 @@ jobs:
 
         steps:
             -   name: Slack notify on-success
-                if: ${{ inputs.success == 'true' }}
+                if: ${{ inputs.success }}
                 uses: rtCamp/action-slack-notify@v2
                 env:
                     SLACK_USERNAME: ${{ github.repository }}
@@ -43,7 +43,7 @@ jobs:
                     SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
 
             -   name: Slack notify on-failure
-                if: ${{ inputs.success == 'false' }}
+                if: ${{ inputs.success }}
                 uses: rtCamp/action-slack-notify@v2
                 env:
                     SLACK_USERNAME: ${{ github.repository }}