Skip to content

Commit

Permalink
Use reusable workflow (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
meziantou authored Nov 1, 2024
1 parent 5fc01c4 commit cdf9782
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,8 @@ jobs:
shell: bash
run: cat renovate.log | jq --slurp -e 'any(.[].msg; test("^No repositories found")) | not'

# Slack application: https://api.slack.com/apps/A07LL1CS2N4/general
- name: Send notifications
- uses: gsoft-inc/wl-internal-reusable-workflows/send-slack-notification@main
if: failure() && github.event_name == 'schedule'
shell: pwsh
run: |
Invoke-RestMethod `
-Uri ${{ secrets.SLACK_WEBHOOK }} `
-Headers @{ "Content-Type" = "application/json" } `
-Method Post `
-Body @"
{
"text": "The GitHub Renovate pipelines failed. Please check the logs: https://github.com/gsoft-inc/wl-reusable-workflows/actions/runs/${{github.run_id}}"
}
"@
with:
webhook_url: ${{secrets.SLACK_WEBHOOK_URL_IDP_DEV_ALERTS}}
messageTemplate: "FailedJob"

0 comments on commit cdf9782

Please sign in to comment.