Skip to content

Commit e76c2e2

Browse files
committed
Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3: Create separate workflow for nightly slack notification
2 parents 4c043d8 + 0a2717e commit e76c2e2

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
@@ -136,12 +136,6 @@ jobs:
136136
-d opcache.enable_cli=1
137137
- name: Extra tests
138138
uses: ./.github/actions/extra-tests
139-
- name: Notify Slack
140-
if: failure()
141-
uses: ./.github/actions/notify-slack
142-
with:
143-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
144-
145139
LINUX_X64:
146140
services:
147141
mysql:
@@ -273,11 +267,6 @@ jobs:
273267
uses: ./.github/actions/extra-tests
274268
- name: Verify generated files are up to date
275269
uses: ./.github/actions/verify-generated-files
276-
- name: Notify Slack
277-
if: failure()
278-
uses: ./.github/actions/notify-slack
279-
with:
280-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
281270
LINUX_X32:
282271
strategy:
283272
fail-fast: false
@@ -362,11 +351,6 @@ jobs:
362351
-d opcache.enable_cli=1
363352
- name: Extra tests
364353
uses: ./.github/actions/extra-tests
365-
- name: Notify Slack
366-
if: failure()
367-
uses: ./.github/actions/notify-slack
368-
with:
369-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
370354
MACOS:
371355
strategy:
372356
fail-fast: false
@@ -425,11 +409,6 @@ jobs:
425409
uses: ./.github/actions/extra-tests
426410
- name: Verify generated files are up to date
427411
uses: ./.github/actions/verify-generated-files
428-
- name: Notify Slack
429-
if: failure()
430-
uses: ./.github/actions/notify-slack
431-
with:
432-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
433412
COVERAGE_DEBUG_NTS:
434413
if: inputs.branch == 'master'
435414
services:
@@ -491,11 +470,6 @@ jobs:
491470
fail_ci_if_error: true
492471
token: ${{ secrets.CODECOV_TOKEN }}
493472
verbose: true
494-
- name: Notify Slack
495-
if: failure()
496-
uses: ./.github/actions/notify-slack
497-
with:
498-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
499473
COMMUNITY:
500474
strategy:
501475
fail-fast: false
@@ -683,11 +657,6 @@ jobs:
683657
if [ $EXIT_CODE -gt 128 ]; then
684658
exit 1
685659
fi
686-
- name: Notify Slack
687-
if: failure()
688-
uses: ./.github/actions/notify-slack
689-
with:
690-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
691660
OPCACHE_VARIATION:
692661
services:
693662
mysql:
@@ -774,11 +743,6 @@ jobs:
774743
-d opcache.file_cache_only=1
775744
- name: Verify generated files are up to date
776745
uses: ./.github/actions/verify-generated-files
777-
- name: Notify Slack
778-
if: failure()
779-
uses: ./.github/actions/notify-slack
780-
with:
781-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
782746
MSAN:
783747
name: MSAN
784748
runs-on: ubuntu-${{ inputs.ubuntu_version }}
@@ -866,11 +830,6 @@ jobs:
866830
-d opcache.enable_cli=1
867831
- name: Verify generated files are up to date
868832
uses: ./.github/actions/verify-generated-files
869-
- name: Notify Slack
870-
if: failure()
871-
uses: ./.github/actions/notify-slack
872-
with:
873-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
874833
LIBMYSQLCLIENT:
875834
name: LIBMYSQLCLIENT
876835
runs-on: ubuntu-${{ inputs.ubuntu_version }}
@@ -913,11 +872,6 @@ jobs:
913872
withMysqli: ${{ inputs.libmysqlclient_with_mysqli }}
914873
- name: Verify generated files are up to date
915874
uses: ./.github/actions/verify-generated-files
916-
- name: Notify Slack
917-
if: failure()
918-
uses: ./.github/actions/notify-slack
919-
with:
920-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
921875
PECL:
922876
if: inputs.branch == 'master'
923877
runs-on: ubuntu-22.04
@@ -1025,11 +979,6 @@ jobs:
1025979
/opt/php/bin/phpize
1026980
./configure --prefix=/opt/php --with-php-config=/opt/php/bin/php-config
1027981
make -j$(/usr/bin/nproc)
1028-
- name: Notify Slack
1029-
if: failure()
1030-
uses: ./.github/actions/notify-slack
1031-
with:
1032-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
1033982
WINDOWS:
1034983
strategy:
1035984
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)