Renovate #721
This file contains 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: 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-reusable-workflows/send-slack-notification@main | |
if: failure() && github.event_name == 'schedule' | |
with: | |
webhook_url: ${{secrets.SLACK_WEBHOOK_URL_IDP_DEV_ALERTS}} | |
messageTemplate: "FailedJob" |