Skip to content

Commit

Permalink
Merge branch 'marko-message-body' into 'master'
Browse files Browse the repository at this point in the history
fix(IDX): alert body and slack channel

Updating message body and slack channel. 

See merge request dfinity-lab/public/ic!20202
  • Loading branch information
cgundy committed Jul 3, 2024
2 parents 0096f18 + 4fca6ee commit 84f9190
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/slack-workflow-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,22 @@ jobs:
id: setup
shell: bash
run: |
# TODO: change to 'eng-idx-bots,release-management-alerts'
CHANNEL="eng-idx-bots"
# TODO: change to 'eng-idx-alerts,release-management-alerts'
CHANNEL="eng-idx-alerts"
echo "channel=${CHANNEL}" >> $GITHUB_OUTPUT
FULL_MESSAGE="nothing"
if [[ "${{ github.event.workflow_run.conclusion }}" =~ ^(success)$ ]]; then
if [[ "$BRANCH_NAME" =~ rc--.* ]]; then
FULL_MESSAGE=":white_check_mark: ${MESSAGE}"
FULL_MESSAGE=":white_check_mark: ${MESSAGE} :relaxed:"
fi
elif [[ "${{ github.event.workflow_run.conclusion }}" =~ ^(failure|timed_out)$ ]]; then
FULL_MESSAGE=":fire: ${MESSAGE}"
FULL_MESSAGE=":fire: ${MESSAGE} :disappointed:"
fi
echo "message=${FULL_MESSAGE}" >> $GITHUB_OUTPUT
env:
BRANCH_NAME: "${{ github.head_ref || github.ref_name }}"
MESSAGE: "*${{github.event.workflow_run.name}}* ${{github.event.workflow_run.conclusion}} in <${{github.server_url}}/${{github.repository}}/${{github.event.workflow_run.head_branch}}|${{github.repository}}>"
MESSAGE: "*${{github.event.workflow_run.name}}* ${{github.event.workflow_run.conclusion}} on ${{github.event.workflow_run.head_branch}} - <${{github.server_url}}/${{github.repository}}/actions/runs/${{github.event.workflow_run.id}}|Run#${{github.event.workflow_run.id}}>"

- name: Post Slack Notification
uses: slackapi/slack-github-action@6c661ce58804a1a20f6dc5fbee7f0381b469e001 # v1.25.0
Expand Down

0 comments on commit 84f9190

Please sign in to comment.