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 fb91b2e commit 622ba81
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/golang_rc_candidate_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ jobs:
fetch-depth: 0
- name: Run coverage commands
shell: bash
id: run_tests_with_rc
run: |
#!/bin/bash
shopt -s expand_aliases
TRACER_PATH=$(pwd)
echo $TRACER_PATH
echo "Dealing with Golang RC version!"
rcToInstall=$(git ls-remote -t https://github.com/golang/go | awk -F/ '{ print $NF }' | sort -V |grep rc | tail -1 | tr -d ' ')
rcToInstall=$(git ls-remote -t https://github.com/golang/go | awk -F/ '{ print $NF }' | sort -V | grep rc | tail -1 | tr -d ' ')
echo "RC version : $rcToInstall"
url="golang.org/dl/$rcToInstall@latest"
Expand Down Expand Up @@ -69,7 +70,7 @@ jobs:
echo "GO_RC_VERSION=$rcToInstall" >> $GITHUB_ENV
- name: Send sucess to slack channel
if: ${{ success() }}
if: ${{ steps.run_tests_with_rc.conclusion == 'success'}}
uses: slackapi/slack-github-action@v1.24.0
with:
channel-id: ${{ secrets.SLACK_RELEASE_CHANNEL_ID }}
Expand All @@ -90,7 +91,7 @@ jobs:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
SLACK_RELEASE_CHANNEL_ID: ${{ secrets.SLACK_RELEASE_CHANNEL_ID }}
- name: Send sucess to slack channel
if: ${{ cancelled() }}
if: ${{ steps.run_tests_with_rc.conclusion == 'failure'}}
uses: slackapi/slack-github-action@v1.24.0
with:
channel-id: ${{ secrets.SLACK_RELEASE_CHANNEL_ID }}
Expand Down

0 comments on commit 622ba81

Please sign in to comment.