@@ -411,14 +411,40 @@ jobs:
411411 --repo "${REPO}" \
412412 --ref main
413413
414+ # =============================================================================
415+ # Notify: Post release announcement to Slack
416+ # =============================================================================
417+
418+ notify :
419+ name : Slack Notification
420+ runs-on : ubuntu-latest
421+ needs : [publish]
422+ timeout-minutes : 5
423+ permissions :
424+ contents : read
425+ steps :
426+ - name : Post to Slack
427+ env :
428+ SLACK_SERVICE : ${{ secrets.SLACK_SERVICE }}
429+ TAG : ${{ github.ref_name }}
430+ REPO : ${{ github.repository }}
431+ SERVER : ${{ github.server_url }}
432+ run : |
433+ set -euo pipefail
434+ RELEASE_URL="${SERVER}/${REPO}/releases/tag/${TAG}"
435+ curl -sSf -X POST \
436+ -H 'Content-type: application/json' \
437+ --data "{\"text\":\"AICR ${TAG} has been released: ${RELEASE_URL}\"}" \
438+ "https://hooks.slack.com/services/${SLACK_SERVICE}"
439+
414440 # =============================================================================
415441 # Summary: Release pipeline report (always runs, even on failure)
416442 # =============================================================================
417443
418444 summary :
419445 name : Release Summary
420446 runs-on : ubuntu-latest
421- needs : [tests, build-ko, build-docker, docker-manifest, image-vuln-scan, attest, release-check, deploy, publish, site]
447+ needs : [tests, build-ko, build-docker, docker-manifest, image-vuln-scan, attest, release-check, deploy, publish, site, notify ]
422448 if : always()
423449 timeout-minutes : 5
424450 permissions :
@@ -436,6 +462,7 @@ jobs:
436462 DEPLOY : ${{ needs.deploy.result }}
437463 PUBLISH : ${{ needs.publish.result }}
438464 SITE : ${{ needs.site.result }}
465+ NOTIFY : ${{ needs.notify.result }}
439466 TAG : ${{ github.ref_name }}
440467 COMMIT : ${{ github.sha }}
441468 run : |
@@ -457,4 +484,5 @@ jobs:
457484 echo "| Deploy | ${DEPLOY} |"
458485 echo "| Publish | ${PUBLISH} |"
459486 echo "| Site | ${SITE} |"
487+ echo "| Slack Notification | ${NOTIFY} |"
460488 } >> "$GITHUB_STEP_SUMMARY"
0 commit comments