mirror of
https://github.com/php/php-src.git
synced 2024-11-27 03:44:07 +08:00
[skip ci] Fix Slack notification
ravsamhq/notify-slack-action doesn't work on MacOS, so we use curl directly.
This commit is contained in:
parent
4b22c3e3ad
commit
2eeff96df5
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 \
|
||||
autoconf \
|
||||
bison \
|
||||
curl \
|
||||
g++-multilib \
|
||||
gcc-multilib \
|
||||
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:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Notify Slack
|
||||
if: always()
|
||||
uses: ravsamhq/notify-slack-action@v1
|
||||
with:
|
||||
status: ${{ job.status }}
|
||||
notify_when: 'failure'
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ inputs.token }}
|
||||
- shell: bash
|
||||
run: >-
|
||||
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 }}
|
||||
|
18
.github/workflows/nightly.yml
vendored
18
.github/workflows/nightly.yml
vendored
@ -31,7 +31,7 @@ jobs:
|
||||
id: set-matrix
|
||||
run: php .github/nightly_matrix.php "${{ github.event_name }}" "${{ github.run_attempt }}"
|
||||
- name: Notify Slack
|
||||
if: always()
|
||||
if: failure()
|
||||
uses: ./.github/actions/notify-slack
|
||||
with:
|
||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
||||
@ -110,7 +110,7 @@ jobs:
|
||||
- name: Verify generated files are up to date
|
||||
uses: ./.github/actions/verify-generated-files
|
||||
- name: Notify Slack
|
||||
if: always()
|
||||
if: failure()
|
||||
uses: ./.github/actions/notify-slack
|
||||
with:
|
||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
||||
@ -186,7 +186,7 @@ jobs:
|
||||
-d opcache.jit_buffer_size=16M
|
||||
-d opcache.jit=1205
|
||||
- name: Notify Slack
|
||||
if: always()
|
||||
if: failure()
|
||||
uses: ./.github/actions/notify-slack
|
||||
with:
|
||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
||||
@ -249,7 +249,7 @@ jobs:
|
||||
- name: Verify generated files are up to date
|
||||
uses: ./.github/actions/verify-generated-files
|
||||
- name: Notify Slack
|
||||
if: always()
|
||||
if: failure()
|
||||
uses: ./.github/actions/notify-slack
|
||||
with:
|
||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
||||
@ -288,7 +288,7 @@ jobs:
|
||||
if: always()
|
||||
run: bash <(curl -s https://codecov.io/bash)
|
||||
- name: Notify Slack
|
||||
if: always()
|
||||
if: failure()
|
||||
uses: ./.github/actions/notify-slack
|
||||
with:
|
||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
||||
@ -408,7 +408,7 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
- name: Notify Slack
|
||||
if: always()
|
||||
if: failure()
|
||||
uses: ./.github/actions/notify-slack
|
||||
with:
|
||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
||||
@ -484,7 +484,7 @@ jobs:
|
||||
- name: Verify generated files are up to date
|
||||
uses: ./.github/actions/verify-generated-files
|
||||
- name: Notify Slack
|
||||
if: always()
|
||||
if: failure()
|
||||
uses: ./.github/actions/notify-slack
|
||||
with:
|
||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
||||
@ -581,7 +581,7 @@ jobs:
|
||||
- name: Verify generated files are up to date
|
||||
uses: ./.github/actions/verify-generated-files
|
||||
- name: Notify Slack
|
||||
if: always()
|
||||
if: failure()
|
||||
uses: ./.github/actions/notify-slack
|
||||
with:
|
||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
||||
@ -641,7 +641,7 @@ jobs:
|
||||
- name: Verify generated files are up to date
|
||||
uses: ./.github/actions/verify-generated-files
|
||||
- name: Notify Slack
|
||||
if: always()
|
||||
if: failure()
|
||||
uses: ./.github/actions/notify-slack
|
||||
with:
|
||||
token: ${{ secrets.ACTION_MONITORING_SLACK }}
|
||||
|
Loading…
Reference in New Issue
Block a user