Skip to content

Commit

Permalink
Fix: confusing operators of bash
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraggle committed Nov 27, 2024
1 parent 5a84b75 commit f759c2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/slack-check-deployment-blocked/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ runs:
local status_string="$2"
if echo "$status_string" | grep -q ":x:[ ]*${component}[ ]" || echo "$status_string" | grep -q ":x:[ ]*${component}|\$" ; then
if echo "$status_string" | grep -q ":x:[ ]*${component}[ ]" || echo "$status_string" | grep -q ":x:[ ]*${component}\$" ; then
return 1
else
return 0
fi
}
is_blocked "${{ inputs.component }}" "${{ steps.slack_channel_topic.outputs.topic }}" && echo "${{ inputs.component}} is blocked based on channel topic" && exit 1
is_blocked "${{ inputs.component }}" "${{ steps.slack_channel_topic.outputs.topic }}" || echo "${{ inputs.component}} is blocked based on channel topic" && exit 1

0 comments on commit f759c2a

Please sign in to comment.