diff --git a/.github/slack/notify-failure.sh b/.github/slack/notify-failure.sh index 57ac2b32f683..9e9458e557e0 100644 --- a/.github/slack/notify-failure.sh +++ b/.github/slack/notify-failure.sh @@ -13,7 +13,7 @@ if [ "$GITHUB_REF" = "refs/heads/dev" ] || [ "$GITHUB_REF" = "refs/heads/integra sha="$(git rev-parse HEAD | cut -c -7)" short_sha="$(echo "$sha" | cut -c -7)" commit_link="\`\`" - workflow_link="" + workflow_link=$(gh api "repos/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID/jobs" | jq -rj ".jobs[] | select(.name==\"$GITHUB_JOB\") | .html_url") export webhook="$SLACK_WEBHOOK_URL" version="$(cat .github/prisma-version.txt)"