-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 1.1 KB
/
renovate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Renovate
on:
# Temporarily enable manual workflow trigger for testing
workflow_dispatch: {}
schedule:
- cron: "5 2 * * *"
jobs:
renovate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
- name: Renovate
shell: bash
run: npx renovate
env:
RENOVATE_CONFIG_FILE: "renovate.json"
LOG_FILE: renovate.log
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
LOG_LEVEL: "debug"
# Ensure the output does not contain a line starting with "No repositories found"
- name: Validate renovate output
shell: bash
run: cat renovate.log | jq --slurp -e 'any(.[].msg; test("^No repositories found")) | not'
- uses: gsoft-inc/wl-internal-reusable-workflows/send-slack-notification@main
if: failure() && github.event_name == 'schedule'
with:
webhook_url: ${{secrets.SLACK_WEBHOOK_URL_IDP_DEV_ALERTS}}
messageTemplate: "FailedJob"