Skip to content

Commit

Permalink
Fix slack message for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jigisha620 committed Apr 2, 2024
1 parent 5c9d79d commit b17e97d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/actions/e2e/slack/notify/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,12 @@ runs:
SUITE: ${{ inputs.suite }}
WORKFLOW: ${{ inputs.workflow_trigger }}
run: |
if [[ "$WORKFLOW" == 'private_cluster' || "$WORKFLOW" == 'soak' ]]; then
SUITE="$WORKFLOW"
fi
if [[ ${{ github.event_name }} == "schedule" && "$WORKFLOW" != "soak" ]]; then
RUN_NAME="$SUITE-periodic"
elif [[ ${{ github.event_name }} == "schedule" ]]; then
if [[ ${{ github.event_name }} == "schedule" && "$WORKFLOW" == 'private_cluster']]; then
RUN_NAME="privateCluster-periodic"
elif [[ ${{ github.event_name }} == "schedule" && "$WORKFLOW" == 'soak']]; then
RUN_NAME="soak-periodic"
elif [[ ${{ github.event_name }} == "schedule" ]]; then
RUN_NAME="$SUITE-periodic"
else
RUN_NAME="$SUITE-${GITHUB_SHA::7}"
fi
Expand Down

0 comments on commit b17e97d

Please sign in to comment.