name: update-versions-with-renovate

on:
  push:
    branches: [main, master]
  schedule:
    # https://crontab.guru/
    # once a day
    - cron: '0 0 * * *'

jobs:
  update-versions-with-renovate:
    runs-on: ubuntu-latest
    if: github.repository == 'kubernetes-sigs/external-dns'
    steps:
      - name: checkout
        uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
      # https://github.com/renovatebot/github-action
      - name: self-hosted renovate
        uses: renovatebot/github-action@0b17c4eb901eca44d018fb25744a50a74b2042df # v46.1.4
        with:
          # https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication
          token: ${{ secrets.GITHUB_TOKEN }}
          configurationFile: .github/renovate-config.js
        env:
          LOG_LEVEL: info
