Run Renovate #1931
This file contains hidden or 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
| # This workflow runs Renovate in a self-hosted manner | |
| # It's triggered on a schedule and can also be run manually. | |
| name: Run Renovate | |
| on: | |
| schedule: | |
| # Runs "at minute 0 past every hour" (e.g., 1:00, 2:00, 3:00) | |
| # You can change this, e.g., '0 9 * * 1-5' for 9 AM UTC on weekdays | |
| - cron: '0 * * * *' | |
| workflow_dispatch: {} # Allows manual triggering from the Actions tab | |
| pull_request: | |
| types: [closed] | |
| branches: | |
| - main | |
| jobs: | |
| renovate: | |
| runs-on: ubuntu-latest | |
| # No 'permissions:' block is needed, as the PAT provides its own. | |
| if: | | |
| github.event_name == 'schedule' || | |
| github.event_name == 'workflow_dispatch' || | |
| (github.event_name == 'pull_request' && github.event.pull_request.merged == true) | |
| steps: | |
| # <-- CHANGED: Added checkout step | |
| # This is required so Renovate can find your renovate.json | |
| # and other repository files. This fixes "No repositories found". | |
| - name: Check out repository | |
| uses: actions/checkout@v5 | |
| - name: Run Renovate | |
| # Use the official Renovate GitHub Action | |
| uses: renovatebot/github-action@v44.0.2 | |
| with: | |
| # <-- CHANGED: Use a Classic PAT, not GITHUB_TOKEN | |
| # This ensures Renovate has correct permissions and | |
| # its PRs will trigger your other CI workflows. | |
| token: ${{ secrets.RENOVATE_TOKEN }} | |
| env: | |
| RENOVATE_REPOSITORIES: ${{ github.repository }} |