Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions .github/workflows/admin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,37 +28,3 @@ jobs:
uploadCoverage: true
secrets:
codecovToken: ${{ secrets.CODECOV_TOKEN }}

notify-slack-on-schedule-failure:
name: Slack Notify
runs-on: ubuntu-latest
needs: unit
if: >-
${{
always() &&
github.event_name == 'schedule' &&
needs.unit.result == 'failure'
}}
steps:
- name: Create Disaster
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
PLUGIN_NAME: ${{ github.event.repository.name }}
run: |
payload=$(
jq -n \
--arg plugin "$PLUGIN_NAME" \
--arg run_url "$RUN_URL" \
--arg workflow "${{ github.workflow }}" '
{
text: (
"*" + $plugin + " scheduled action run failed*\n"
+ "Workflow: " + $workflow + "\n"
+ "<" + $run_url + "|This run caused doom>"
)
}
'
)

curl -sS -X POST -H 'Content-type: application/json' --data "${payload}" "${SLACK_WEBHOOK_URL}"
34 changes: 0 additions & 34 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,37 +34,3 @@ jobs:
uploadCoverage: true
secrets:
codecovToken: ${{ secrets.CODECOV_TOKEN }}

notify-slack-on-schedule-failure:
name: Slack Notify
runs-on: ubuntu-latest
needs: [cs, phpstan, phpunit]
if: >-
${{
always() &&
github.event_name == 'schedule' &&
(needs.cs.result == 'failure' || needs.phpstan.result == 'failure' || needs.phpunit.result == 'failure')
}}
steps:
- name: Create Disaster
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
PLUGIN_NAME: ${{ github.event.repository.name }}
run: |
payload=$(
jq -n \
--arg plugin "$PLUGIN_NAME" \
--arg run_url "$RUN_URL" \
--arg workflow "${{ github.workflow }}" '
{
text: (
"*" + $plugin + " scheduled action run failed*\n"
+ "Workflow: " + $workflow + "\n"
+ "<" + $run_url + "|This run caused doom>"
)
}
'
)

curl -sS -X POST -H 'Content-type: application/json' --data "${payload}" "${SLACK_WEBHOOK_URL}"
34 changes: 0 additions & 34 deletions .github/workflows/translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,37 +65,3 @@ jobs:
git add ./src
git commit -m "Update translations $(date +%Y-%m-%d)"
git push

notify-slack-on-schedule-failure:
name: Slack Notify
runs-on: ubuntu-latest
needs: update_translations
if: >-
${{
always() &&
github.event_name == 'schedule' &&
needs.update_translations.result == 'failure'
}}
steps:
- name: Create Disaster
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
PLUGIN_NAME: ${{ github.event.repository.name }}
run: |
payload=$(
jq -n \
--arg plugin "$PLUGIN_NAME" \
--arg run_url "$RUN_URL" \
--arg workflow "${{ github.workflow }}" '
{
text: (
"*" + $plugin + " scheduled action run failed*\n"
+ "Workflow: " + $workflow + "\n"
+ "<" + $run_url + "|This run caused doom>"
)
}
'
)

curl -sS -X POST -H 'Content-type: application/json' --data "${payload}" "${SLACK_WEBHOOK_URL}"
Loading