diff --git a/.github/actions/e2e/slack/notify/action.yaml b/.github/actions/e2e/slack/notify/action.yaml index a756c62ec062..3e04dccce929 100644 --- a/.github/actions/e2e/slack/notify/action.yaml +++ b/.github/actions/e2e/slack/notify/action.yaml @@ -24,11 +24,12 @@ runs: shell: bash env: SUITE: ${{ inputs.suite }} + WORKFLOW: ${{ inputs.workflow_trigger }} run: | - if [[ ${{ inputs.workflow_trigger == 'private_cluster' || inputs.workflow_trigger == 'soak'}} ]]; then - SUITE=${{ inputs.workflow_trigger }} + if [[ "$WORKFLOW" == 'private_cluster' || "$WORKFLOW" == 'soak' ]]; then + SUITE="$WORKFLOW" fi - if [[ ${{ github.event_name }} == "schedule" && inputs.suite != "soak" ]]; then + if [[ ${{ github.event_name }} == "schedule" && "$WORKFLOW" != "soak" ]]; then RUN_NAME="$SUITE-periodic" elif [[ ${{ github.event_name }} == "schedule" ]]; then RUN_NAME="soak-periodic"