Skip to content

Commit

Permalink
Updating slack message
Browse files Browse the repository at this point in the history
  • Loading branch information
ebmifa committed Feb 1, 2024
1 parent f243fd6 commit cab3ab3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/cargo-llvm-cov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,10 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
export sui_branch_name=$(gh api -H 'Accept: application/vnd.github+json' /repos/MystenLabs/sui/commits/${{ env.SUI_SHA }}/branches-where-head --jq '.[].name' | head -n 1)
export sui_branch_name=$(gh api -H 'Accept: application/vnd.github+json' /repos/MystenLabs/sui/commits/${{ env.sui_sha }}/branches-where-head --jq '.[].name' | head -n 1)
# if the commit is not the head of the branch, get it's base branch
[[ -z $sui_branch_name ]] && export sui_branch_name=$(gh api -H 'Accept: application/vnd.github+json' /repos/MystenLabs/sui/commits/${{ env.SUI_SHA }}/pulls --jq '.[].base.ref' | head -n 1)
[[ -z $sui_branch_name ]] && export sui_branch_name=$(gh api -H 'Accept: application/vnd.github+json' /repos/MystenLabs/sui/commits/${{ env.sui_sha }}/pulls --jq '.[].base.ref' | head -n 1)
echo "sui_branch_name=${sui_branch_name}" >> $GITHUB_ENV
echo "sui_branch_name=${sui_branch_name}"
- name: Get link to logs
env:
Expand All @@ -116,6 +115,7 @@ jobs:
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
SUI_SHA: ${{ env.sui_sha }}
SUI_BRANCH_NAME: ${{ env.sui_branch_name }}
GH_JOB_LINK: ${{ env.gh_job_link }}
with:
channel-id: 'code-coverage'
Expand All @@ -137,7 +137,7 @@ jobs:
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Sui commit: <https://github.com/MystenLabs/sui/commit/${{ env.SUI_SHA }}|${{ env.SUI_SHA }}>\n sui branch: `${{ env.sui_branch_name }}`\nRun: <${{ env.GH_JOB_LINK }}|${{ github.run_id }}>"
"text": "Sui commit: <https://github.com/MystenLabs/sui/commit/${{ env.SUI_SHA }}|${{ env.SUI_SHA }}>\nSui branch: `${{ env.SUI_BRANCH_NAME }}`\nRun: <${{ env.GH_JOB_LINK }}|${{ github.run_id }}>"
}
},
{
Expand All @@ -147,7 +147,7 @@ jobs:
"type": "section",
"text": {
"type": "mrkdwn",
"text": "@sui-core, Please look over the code coverage <https://app.codecov.io/github/MystenLabs/sui/tree/main|report> for the main branch"
"text": "@sui-core, Please look over the code coverage <https://app.codecov.io/github/MystenLabs/sui/tree/${{ env.SUI_BRANCH_NAME }}|report> for the ${{ env.SUI_BRANCH_NAME }} branch in Sui repo."
}
}
]
Expand Down

0 comments on commit cab3ab3

Please sign in to comment.