Skip to content

Commit

Permalink
dsds
Browse files Browse the repository at this point in the history
  • Loading branch information
nithinputhenveettil committed Oct 3, 2024
1 parent 18508e9 commit bc5080b
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions .github/workflows/golang_rc_candidate_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
run: |
#!/bin/bash
shopt -s expand_aliases
TRACER_PATH=$(pwd)
echo $TRACER_PATH
Expand Down Expand Up @@ -69,23 +68,46 @@ jobs:
echo "All done!"
echo "GO_RC_VERSION=$rcToInstall" >> $GITHUB_ENV
- name: Send result to slack channel
- name: Send sucess to slack channel
if: ${{ success() }}
uses: slackapi/slack-github-action@v1.24.0
with:
channel-id: ${{ secrets.SLACK_RELEASE_CHANNEL_ID }}
payload: |
{
"text": ":mega: Unit tests run with Golang RC version-${{ env.GO_RC_VERSION }} - sucess:tada:",
"text": ":mega: Unit tests executed successfully with Golang RC version ${{ env.GO_RC_VERSION }}. :tada:",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":mega: Unit tests run with Golang RC version-${{ env.GO_RC_VERSION }} - sucess:tada:"
"text": ":mega: Unit tests executed successfully with Golang RC version ${{ env.GO_RC_VERSION }}. :tada:"
}
}
]
}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
SLACK_RELEASE_CHANNEL_ID: ${{ secrets.SLACK_RELEASE_CHANNEL_ID }}
- name: Send sucess to slack channel
if: ${{ cancelled() }}
uses: slackapi/slack-github-action@v1.24.0
with:
channel-id: ${{ secrets.SLACK_RELEASE_CHANNEL_ID }}
payload: |
{
"text": ":alert2: Unit tests run with Golang RC version ${{ env.GO_RC_VERSION }} have failed! :alert2:",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":alert2: Unit tests run with Golang RC version ${{ env.GO_RC_VERSION }} have failed! :alert2:"
}
}
]
}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
SLACK_RELEASE_CHANNEL_ID: ${{ secrets.SLACK_RELEASE_CHANNEL_ID }}

0 comments on commit bc5080b

Please sign in to comment.