diff --git a/.github/scripts/test-project.sh b/.github/scripts/test-project.sh index c9eb674e5061..caee3fee3148 100644 --- a/.github/scripts/test-project.sh +++ b/.github/scripts/test-project.sh @@ -12,6 +12,9 @@ set +u matrix=$3 set -u +test_workflow_link=$(gh api "repos/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID/jobs" --jq ".jobs[] | select(.name==\"$GITHUB_JOB\") | .html_url") +echo "!!!!!! $GITHUB_REPOSITORY $GITHUB_RUN_ID $test_workflow_link !!!!!" + # In platforms/firebase-functions, the file exists in /functions sub-directory, so we can't hardcode the package.json path pjson_path=$(find "$dir"/"$project" -name "package.json" ! -path "*/node_modules/*" | head -n 1) bash .github/scripts/print-version.sh "$pjson_path" 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)"