File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,6 +36,6 @@ FAILED_LIST=/tmp/verify-failed
3636 else
3737 echo " ✅ All kernels verified successfully."
3838 fi
39- } 2>&1 | tee /tmp/verify-output.log
39+ } 2>&1
4040
4141[ -s " $FAILED_LIST " ] && exit 1 || exit 0
Original file line number Diff line number Diff line change 3737 run : .github/scripts/verify-signatures.sh
3838
3939 - name : Post results to Slack
40- if : always ()
40+ if : failure ()
4141 env :
4242 SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL_SECURITY }}
4343 run : |
44- nix run nixpkgs#jq -- -Rs '{"text": .}' /tmp/verify-output.log | \
44+ RUN_URL="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID"
45+ FAILED_KERNELS=$(sed 's/^/• /' /tmp/verify-failed)
46+ MESSAGE=$(printf '❌ Kernel verification failed:\n%s\n\n%s' "$FAILED_KERNELS" "$RUN_URL")
47+ nix run nixpkgs#jq -- -rn --arg text "$MESSAGE" '{"text": $text}' | \
4548 curl -X POST -H 'Content-type: application/json' -d @- "$SLACK_WEBHOOK_URL"
You can’t perform that action at this time.
0 commit comments