Nightly results #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Nightly results | |
on: | |
workflow_run: | |
workflows: | |
- Nightly | |
types: | |
- completed | |
jobs: | |
on-failure: | |
runs-on: ubuntu-latest | |
if: ${{ github.repository == 'php/php-src' && github.event.workflow_run.conclusion == 'failure' }} | |
steps: | |
- run: | | |
export DEBIAN_FRONTEND=noninteractive | |
sudo apt-get install -y curl | |
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 }} |