mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-8.2'
* PHP-8.2: [skip ci] Fix Slack notification
This commit is contained in:
commit
5823955c78
3 changed files with 14 additions and 18 deletions
1
.github/actions/apt-x32/action.yml
vendored
1
.github/actions/apt-x32/action.yml
vendored
|
@ -13,6 +13,7 @@ runs:
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
autoconf \
|
autoconf \
|
||||||
bison \
|
bison \
|
||||||
|
curl \
|
||||||
g++-multilib \
|
g++-multilib \
|
||||||
gcc-multilib \
|
gcc-multilib \
|
||||||
language-pack-de \
|
language-pack-de \
|
||||||
|
|
11
.github/actions/notify-slack/action.yml
vendored
11
.github/actions/notify-slack/action.yml
vendored
|
@ -5,11 +5,6 @@ inputs:
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
- name: Notify Slack
|
- shell: bash
|
||||||
if: always()
|
run: >-
|
||||||
uses: ravsamhq/notify-slack-action@v1
|
curl -X POST -H 'Content-type: application/json' --data '{"attachments": [{"text": "Job in *nightly* failed", "footer": "<https://github.com/php/php-src/actions/runs/${{ github.run_id }}|View Run>", "color": "danger", "mrkdwn_in": ["text"]}]}' ${{ inputs.token }}
|
||||||
with:
|
|
||||||
status: ${{ job.status }}
|
|
||||||
notify_when: 'failure'
|
|
||||||
env:
|
|
||||||
SLACK_WEBHOOK_URL: ${{ inputs.token }}
|
|
||||||
|
|
20
.github/workflows/nightly.yml
vendored
20
.github/workflows/nightly.yml
vendored
|
@ -33,7 +33,7 @@ jobs:
|
||||||
id: set-matrix
|
id: set-matrix
|
||||||
run: php .github/nightly_matrix.php "${{ github.event_name }}" "${{ github.run_attempt }}"
|
run: php .github/nightly_matrix.php "${{ github.event_name }}" "${{ github.run_attempt }}"
|
||||||
- name: Notify Slack
|
- name: Notify Slack
|
||||||
if: always()
|
if: failure()
|
||||||
uses: ./.github/actions/notify-slack
|
uses: ./.github/actions/notify-slack
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
||||||
|
@ -123,7 +123,7 @@ jobs:
|
||||||
- name: Verify generated files are up to date
|
- name: Verify generated files are up to date
|
||||||
uses: ./.github/actions/verify-generated-files
|
uses: ./.github/actions/verify-generated-files
|
||||||
- name: Notify Slack
|
- name: Notify Slack
|
||||||
if: always()
|
if: failure()
|
||||||
uses: ./.github/actions/notify-slack
|
uses: ./.github/actions/notify-slack
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
||||||
|
@ -199,7 +199,7 @@ jobs:
|
||||||
-d opcache.jit_buffer_size=16M
|
-d opcache.jit_buffer_size=16M
|
||||||
-d opcache.jit=1205
|
-d opcache.jit=1205
|
||||||
- name: Notify Slack
|
- name: Notify Slack
|
||||||
if: always()
|
if: failure()
|
||||||
uses: ./.github/actions/notify-slack
|
uses: ./.github/actions/notify-slack
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
||||||
|
@ -267,7 +267,7 @@ jobs:
|
||||||
- name: Verify generated files are up to date
|
- name: Verify generated files are up to date
|
||||||
uses: ./.github/actions/verify-generated-files
|
uses: ./.github/actions/verify-generated-files
|
||||||
- name: Notify Slack
|
- name: Notify Slack
|
||||||
if: always()
|
if: failure()
|
||||||
uses: ./.github/actions/notify-slack
|
uses: ./.github/actions/notify-slack
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
||||||
|
@ -313,7 +313,7 @@ jobs:
|
||||||
if: always()
|
if: always()
|
||||||
run: bash <(curl -s https://codecov.io/bash)
|
run: bash <(curl -s https://codecov.io/bash)
|
||||||
- name: Notify Slack
|
- name: Notify Slack
|
||||||
if: always()
|
if: failure()
|
||||||
uses: ./.github/actions/notify-slack
|
uses: ./.github/actions/notify-slack
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
||||||
|
@ -433,7 +433,7 @@ jobs:
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
- name: Notify Slack
|
- name: Notify Slack
|
||||||
if: always()
|
if: failure()
|
||||||
uses: ./.github/actions/notify-slack
|
uses: ./.github/actions/notify-slack
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
||||||
|
@ -516,7 +516,7 @@ jobs:
|
||||||
- name: Verify generated files are up to date
|
- name: Verify generated files are up to date
|
||||||
uses: ./.github/actions/verify-generated-files
|
uses: ./.github/actions/verify-generated-files
|
||||||
- name: Notify Slack
|
- name: Notify Slack
|
||||||
if: always()
|
if: failure()
|
||||||
uses: ./.github/actions/notify-slack
|
uses: ./.github/actions/notify-slack
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
||||||
|
@ -614,7 +614,7 @@ jobs:
|
||||||
- name: Verify generated files are up to date
|
- name: Verify generated files are up to date
|
||||||
uses: ./.github/actions/verify-generated-files
|
uses: ./.github/actions/verify-generated-files
|
||||||
- name: Notify Slack
|
- name: Notify Slack
|
||||||
if: always()
|
if: failure()
|
||||||
uses: ./.github/actions/notify-slack
|
uses: ./.github/actions/notify-slack
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
||||||
|
@ -674,7 +674,7 @@ jobs:
|
||||||
- name: Verify generated files are up to date
|
- name: Verify generated files are up to date
|
||||||
uses: ./.github/actions/verify-generated-files
|
uses: ./.github/actions/verify-generated-files
|
||||||
- name: Notify Slack
|
- name: Notify Slack
|
||||||
if: always()
|
if: failure()
|
||||||
uses: ./.github/actions/notify-slack
|
uses: ./.github/actions/notify-slack
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
||||||
|
@ -782,7 +782,7 @@ jobs:
|
||||||
./configure --prefix=/opt/php --with-php-config=/opt/php/bin/php-config
|
./configure --prefix=/opt/php --with-php-config=/opt/php/bin/php-config
|
||||||
make -j$(/usr/bin/nproc)
|
make -j$(/usr/bin/nproc)
|
||||||
- name: Notify Slack
|
- name: Notify Slack
|
||||||
if: always()
|
if: failure()
|
||||||
uses: ./.github/actions/notify-slack
|
uses: ./.github/actions/notify-slack
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue