From 79ffb4b3c02b627e73c3489a719aa7a85705db74 Mon Sep 17 00:00:00 2001 From: domenico Date: Thu, 30 Apr 2026 17:12:59 +0200 Subject: [PATCH 1/7] =?UTF-8?q?=F0=9F=91=B7=20ci:=20add=20Slack=20notifica?= =?UTF-8?q?tion=20job=20to=20CI/CD=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/_ci-cd.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/_ci-cd.yml b/.github/workflows/_ci-cd.yml index a26226a80f..401ea6c28c 100644 --- a/.github/workflows/_ci-cd.yml +++ b/.github/workflows/_ci-cd.yml @@ -223,3 +223,14 @@ jobs: coverage-threshold: '80' exclude-patterns: '.github/**' ai-enabled: 'true' + + slackNotification: + name: Slack Notification + runs-on: ubuntu-24.04 + steps: + - name: Slack Notification + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} + SLACK_CHANNEL: travis-ci + SLACK_TITLE: Github CI/CD Pipeline Complete for ${{ github.ref_name }} From 2dfbf8f9dba38f07e9c30673d875137be9a59267 Mon Sep 17 00:00:00 2001 From: Domenico Lupinetti <8008416+Ostico@users.noreply.github.com> Date: Thu, 30 Apr 2026 17:19:07 +0200 Subject: [PATCH 2/7] =?UTF-8?q?=F0=9F=91=B7=20ci:=20add=20empty=20permissi?= =?UTF-8?q?ons=20block=20to=20slack-notification=20job?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/_ci-cd.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/_ci-cd.yml b/.github/workflows/_ci-cd.yml index 401ea6c28c..e9eb84244c 100644 --- a/.github/workflows/_ci-cd.yml +++ b/.github/workflows/_ci-cd.yml @@ -227,6 +227,7 @@ jobs: slackNotification: name: Slack Notification runs-on: ubuntu-24.04 + permissions: {} steps: - name: Slack Notification uses: rtCamp/action-slack-notify@v2 From 3b61cb9fe2aec6017d6729aad70cc57b0c07730a Mon Sep 17 00:00:00 2001 From: Domenico Lupinetti <8008416+Ostico@users.noreply.github.com> Date: Thu, 30 Apr 2026 17:21:52 +0200 Subject: [PATCH 3/7] =?UTF-8?q?=F0=9F=91=B7=20ci:=20use=20base=5Fref=20fal?= =?UTF-8?q?lback=20for=20Slack=20notification=20title?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/_ci-cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/_ci-cd.yml b/.github/workflows/_ci-cd.yml index e9eb84244c..320bf012c6 100644 --- a/.github/workflows/_ci-cd.yml +++ b/.github/workflows/_ci-cd.yml @@ -234,4 +234,4 @@ jobs: env: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} SLACK_CHANNEL: travis-ci - SLACK_TITLE: Github CI/CD Pipeline Complete for ${{ github.ref_name }} + SLACK_TITLE: Github CI/CD Pipeline Complete for ${{ github.base_ref || github.ref_name }} From 72c3b432a58edb23250be4dddc9ad17490b6ee26 Mon Sep 17 00:00:00 2001 From: Domenico Lupinetti <8008416+Ostico@users.noreply.github.com> Date: Thu, 30 Apr 2026 17:22:15 +0200 Subject: [PATCH 4/7] =?UTF-8?q?=F0=9F=91=B7=20ci:=20rename=20slackNotifica?= =?UTF-8?q?tion=20job=20ID=20to=20kebab-case?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/_ci-cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/_ci-cd.yml b/.github/workflows/_ci-cd.yml index 320bf012c6..5bc3d0d0d3 100644 --- a/.github/workflows/_ci-cd.yml +++ b/.github/workflows/_ci-cd.yml @@ -224,7 +224,7 @@ jobs: exclude-patterns: '.github/**' ai-enabled: 'true' - slackNotification: + slack-notification: name: Slack Notification runs-on: ubuntu-24.04 permissions: {} From 6119e6c812886d17fe2c4dcbc04a2a53a06f22f2 Mon Sep 17 00:00:00 2001 From: Domenico Lupinetti <8008416+Ostico@users.noreply.github.com> Date: Thu, 30 Apr 2026 17:23:32 +0200 Subject: [PATCH 5/7] =?UTF-8?q?=F0=9F=91=B7=20ci:=20add=20needs=20and=20al?= =?UTF-8?q?ways()=20condition=20to=20slack-notification=20job?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/_ci-cd.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/_ci-cd.yml b/.github/workflows/_ci-cd.yml index 5bc3d0d0d3..a0750ee583 100644 --- a/.github/workflows/_ci-cd.yml +++ b/.github/workflows/_ci-cd.yml @@ -227,6 +227,11 @@ jobs: slack-notification: name: Slack Notification runs-on: ubuntu-24.04 + needs: + - tests + - deploy + - test-guard + if: always() permissions: {} steps: - name: Slack Notification From 4ce2fa37c0c5571c5adeba0f9fedf10f9a0ff762 Mon Sep 17 00:00:00 2001 From: domenico Date: Thu, 30 Apr 2026 17:32:23 +0200 Subject: [PATCH 6/7] =?UTF-8?q?=F0=9F=90=9B=20fix(ci):=20use=20head=5Fref?= =?UTF-8?q?=20instead=20of=20base=5Fref=20for=20Slack=20notification=20tit?= =?UTF-8?q?le?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit base_ref reports the target branch (e.g. develop) on PR runs, not the triggering branch. head_ref correctly reports the source branch, with ref_name as fallback for push/tag events. --- .github/workflows/_ci-cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/_ci-cd.yml b/.github/workflows/_ci-cd.yml index a0750ee583..d392fe07f3 100644 --- a/.github/workflows/_ci-cd.yml +++ b/.github/workflows/_ci-cd.yml @@ -239,4 +239,4 @@ jobs: env: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} SLACK_CHANNEL: travis-ci - SLACK_TITLE: Github CI/CD Pipeline Complete for ${{ github.base_ref || github.ref_name }} + SLACK_TITLE: Github CI/CD Pipeline Complete for ${{ github.head_ref || github.ref_name }} From 3a911622a56e5b47553f8593960c8ba018c5177f Mon Sep 17 00:00:00 2001 From: domenico Date: Thu, 30 Apr 2026 17:39:56 +0200 Subject: [PATCH 7/7] =?UTF-8?q?=F0=9F=90=9B=20fix(ci):=20capitalize=20GitH?= =?UTF-8?q?ub=20and=20skip=20Slack=20notify=20on=20fork=20PRs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix brand spelling (Github → GitHub) in Slack title. Add fork-PR guard so the job is skipped when secrets are unavailable on external contributor PRs. --- .github/workflows/_ci-cd.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/_ci-cd.yml b/.github/workflows/_ci-cd.yml index d392fe07f3..bccefdd76c 100644 --- a/.github/workflows/_ci-cd.yml +++ b/.github/workflows/_ci-cd.yml @@ -231,7 +231,9 @@ jobs: - tests - deploy - test-guard - if: always() + if: >- + always() && + (github.event_name != 'pull_request' || !github.event.pull_request.head.repo.fork) permissions: {} steps: - name: Slack Notification @@ -239,4 +241,4 @@ jobs: env: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} SLACK_CHANNEL: travis-ci - SLACK_TITLE: Github CI/CD Pipeline Complete for ${{ github.head_ref || github.ref_name }} + SLACK_TITLE: GitHub CI/CD Pipeline Complete for ${{ github.head_ref || github.ref_name }}