Skip to content

Commit

Permalink
Print link to a workflow in Slack notification
Browse files Browse the repository at this point in the history
  • Loading branch information
SevInf committed Jul 16, 2024
1 parent 56d1ce9 commit 2d29bde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/slack/notify-failure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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="\`<https://github.com/prisma/ecosystem-tests/commit/$sha|$branch@$short_sha>\`"
workflow_link="<https://github.com/prisma/ecosystem-tests/actions/runs/$GITHUB_RUN_ID|$project $matrix>"
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)"
Expand Down

0 comments on commit 2d29bde

Please sign in to comment.