Skip to content

Commit 8bce65d

Browse files
committed
Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4: Create separate workflow for nightly slack notification
2 parents fba06d8 + e76c2e2 commit 8bce65d

File tree

4 files changed

+16
-66
lines changed

4 files changed

+16
-66
lines changed

.github/actions/notify-slack/action.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Nightly results
2+
on:
3+
workflow_run:
4+
workflows:
5+
- Nightly
6+
types:
7+
- completed
8+
jobs:
9+
on-failure:
10+
runs-on: ubuntu-latest
11+
if: ${{ github.repository == 'php/php-src' && github.event.workflow_run.conclusion == 'failure' }}
12+
steps:
13+
- run: |
14+
export DEBIAN_FRONTEND=noninteractive
15+
sudo apt-get install -y curl
16+
curl -X POST -H 'Content-type: application/json' --data '{"attachments": [{"text": "Job in *nightly* failed", "footer": "<${{ github.event.workflow_run.jobs_url }}|View Run>", "color": "danger", "mrkdwn_in": ["text"]}]}' ${{ secrets.ACTION_MONITORING_SLACK }}

.github/workflows/nightly.yml

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,6 @@ jobs:
135135
-d opcache.enable_cli=1
136136
- name: Extra tests
137137
uses: ./.github/actions/extra-tests
138-
- name: Notify Slack
139-
if: failure()
140-
uses: ./.github/actions/notify-slack
141-
with:
142-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
143-
144138
LINUX_X64:
145139
services:
146140
mysql:
@@ -269,11 +263,6 @@ jobs:
269263
uses: ./.github/actions/extra-tests
270264
- name: Verify generated files are up to date
271265
uses: ./.github/actions/verify-generated-files
272-
- name: Notify Slack
273-
if: failure()
274-
uses: ./.github/actions/notify-slack
275-
with:
276-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
277266
LINUX_X32:
278267
strategy:
279268
fail-fast: false
@@ -355,11 +344,6 @@ jobs:
355344
-d opcache.enable_cli=1
356345
- name: Extra tests
357346
uses: ./.github/actions/extra-tests
358-
- name: Notify Slack
359-
if: failure()
360-
uses: ./.github/actions/notify-slack
361-
with:
362-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
363347
MACOS:
364348
strategy:
365349
fail-fast: false
@@ -415,11 +399,6 @@ jobs:
415399
uses: ./.github/actions/extra-tests
416400
- name: Verify generated files are up to date
417401
uses: ./.github/actions/verify-generated-files
418-
- name: Notify Slack
419-
if: failure()
420-
uses: ./.github/actions/notify-slack
421-
with:
422-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
423402
COVERAGE_DEBUG_NTS:
424403
if: inputs.branch == 'master'
425404
services:
@@ -480,11 +459,6 @@ jobs:
480459
fail_ci_if_error: true
481460
token: ${{ secrets.CODECOV_TOKEN }}
482461
verbose: true
483-
- name: Notify Slack
484-
if: failure()
485-
uses: ./.github/actions/notify-slack
486-
with:
487-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
488462
COMMUNITY:
489463
strategy:
490464
fail-fast: false
@@ -671,11 +645,6 @@ jobs:
671645
if [ $EXIT_CODE -gt 128 ]; then
672646
exit 1
673647
fi
674-
- name: Notify Slack
675-
if: failure()
676-
uses: ./.github/actions/notify-slack
677-
with:
678-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
679648
OPCACHE_VARIATION:
680649
services:
681650
mysql:
@@ -757,11 +726,6 @@ jobs:
757726
-d opcache.file_cache_only=1
758727
- name: Verify generated files are up to date
759728
uses: ./.github/actions/verify-generated-files
760-
- name: Notify Slack
761-
if: failure()
762-
uses: ./.github/actions/notify-slack
763-
with:
764-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
765729
MSAN:
766730
name: MSAN
767731
runs-on: ubuntu-${{ inputs.ubuntu_version }}
@@ -848,11 +812,6 @@ jobs:
848812
-d opcache.enable_cli=1
849813
- name: Verify generated files are up to date
850814
uses: ./.github/actions/verify-generated-files
851-
- name: Notify Slack
852-
if: failure()
853-
uses: ./.github/actions/notify-slack
854-
with:
855-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
856815
LIBMYSQLCLIENT:
857816
name: LIBMYSQLCLIENT
858817
runs-on: ubuntu-${{ inputs.ubuntu_version }}
@@ -895,11 +854,6 @@ jobs:
895854
withMysqli: ${{ inputs.libmysqlclient_with_mysqli }}
896855
- name: Verify generated files are up to date
897856
uses: ./.github/actions/verify-generated-files
898-
- name: Notify Slack
899-
if: failure()
900-
uses: ./.github/actions/notify-slack
901-
with:
902-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
903857
PECL:
904858
if: inputs.branch == 'master'
905859
runs-on: ubuntu-22.04
@@ -1007,11 +961,6 @@ jobs:
1007961
/opt/php/bin/phpize
1008962
./configure --prefix=/opt/php --with-php-config=/opt/php/bin/php-config
1009963
make -j$(/usr/bin/nproc)
1010-
- name: Notify Slack
1011-
if: failure()
1012-
uses: ./.github/actions/notify-slack
1013-
with:
1014-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
1015964
WINDOWS:
1016965
strategy:
1017966
fail-fast: false

.github/workflows/root.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ jobs:
3131
- name: Generate Matrix
3232
id: set-matrix
3333
run: php .github/nightly_matrix.php "${{ github.event_name }}" "${{ github.run_attempt }}" "${{ github.head_ref || github.ref_name }}"
34-
- name: Notify Slack
35-
if: failure()
36-
uses: ./.github/actions/notify-slack
37-
with:
38-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
3934
NIGHTLY:
4035
needs: GENERATE_MATRIX
4136
name: ${{ matrix.branch.ref }}

0 commit comments

Comments
 (0)