Changeset 51511 for trunk/.github/workflows/php-compatibility.yml
- Timestamp:
- 07/29/2021 07:47:43 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/php-compatibility.yml
r51355 r51511 51 51 # - Runs the PHP compatibility tests. 52 52 # - Ensures version-controlled files are not modified or deleted. 53 # - todo: Configure Slack notifications for failing scans. 54 php-comatibility: 53 php-compatibility: 55 54 name: Check PHP compatibility 56 55 runs-on: ubuntu-latest … … 89 88 - name: Ensure version-controlled files are not modified or deleted 90 89 run: git diff --exit-code 90 91 # Post workflow related status updates to Slack. 92 # 93 # When a job in this workflow fails, a message is posted to #core. 94 # 95 # This job should always require all other jobs in this workflow to complete before running. 96 slack-notifications: 97 name: Slack Notifications 98 runs-on: ubuntu-latest 99 needs: [ php-compatibility ] 100 if: ${{ failure() && github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' }} 101 102 steps: 103 - name: Post failure notification to Slack 104 uses: slackapi/slack-github-action@d5d276d7ae0f38f29322b80da9baf985cc80f8b1 # v1.15.0 105 with: 106 payload: "{\"workflow_name\":\"${{ github.workflow }}\",\"run_url\":\"https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}\"}" 107 env: 108 SLACK_WEBHOOK_URL: ${{ secrets.SLACK_GHA_WEBHOOK_URL }}
Note: See TracChangeset
for help on using the changeset viewer.