Renovate #133
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
| # Dependencies Management Workflow | |
| name: Renovate | |
| on: | |
| schedule: | |
| - cron: "0 2 * * *" | |
| workflow_dispatch: | |
| inputs: | |
| dry-run: | |
| description: "Run Renovate in dry-run mode (no PR)" | |
| required: false | |
| default: false | |
| type: boolean | |
| permissions: {} | |
| jobs: | |
| renovate: | |
| permissions: | |
| contents: read | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Get token | |
| id: get-github-app-token | |
| uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 | |
| with: | |
| client-id: ${{ secrets.RENOVATE_APP_ID }} | |
| private-key: ${{ secrets.RENOVATE_APP_PEM }} | |
| repositories: ${{ github.event.repository.name }} | |
| owner: ${{ github.repository_owner }} | |
| # Repository permissions | |
| permission-administration: read | |
| permission-checks: write | |
| permission-statuses: write | |
| permission-contents: write | |
| permission-vulnerability-alerts: read | |
| permission-issues: write | |
| permission-metadata: read | |
| permission-pull-requests: write | |
| permission-workflows: write | |
| # Organization permissions | |
| permission-organization-administration: read | |
| permission-members: read | |
| - name: Self-hosted Renovate | |
| uses: renovatebot/github-action@5402b206248e5a8c8427a15102702eb9c1793efc # v46.2.4 | |
| with: | |
| # renovate: datasource=github-releases depName=renovatebot/renovate | |
| renovate-version: 44.41.1 | |
| configurationFile: .github/renovate.json5 | |
| token: "${{ steps.get-github-app-token.outputs.token }}" | |
| env: | |
| LOG_LEVEL: ${{ github.event_name == 'workflow_dispatch' && 'debug' || 'info' }} | |
| # Dry run if the event is workflow_dispatch AND the dry-run input is true | |
| RENOVATE_DRY_RUN: ${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.dry-run == 'true') && 'full' || null }} | |
| RENOVATE_PLATFORM: github | |
| RENOVATE_REPOSITORIES: ${{ github.repository }} |