Renovate #815
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: | |
schedule: | |
# At minute 3 past hour 4 | |
- cron: '3 4 * * *' | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- '.github/renovate*' | |
- '.github/workflows/renovate*' | |
push: | |
branches: | |
- 'main' | |
paths: | |
- '.github/renovate*' | |
- '.github/workflows/renovate*' | |
jobs: | |
renovate: | |
runs-on: ubuntu-latest | |
concurrency: renovate-${{ github.ref }} | |
steps: | |
- name: Generate token | |
id: generate_token | |
uses: tibdex/[email protected] | |
with: | |
app_id: ${{ secrets.RENOVATE_APP_ID }} | |
private_key: ${{ secrets.RENOVATE_PEM }} | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Validate Renovate JSON | |
run: jq empty .github/renovate.json | |
- name: Generate Dry Run | |
if: ${{ github.ref != 'refs/heads/main' }} | |
run: jq '.dryRun = "true"' .github/renovate.json > .github/renovate-dry-run.json | |
- name: Renovate - Dry Run | |
uses: renovatebot/[email protected] | |
if: ${{ github.ref != 'refs/heads/main' }} | |
with: | |
configurationFile: .github/renovate-dry-run.json | |
token: 'x-access-token:${{ steps.generate_token.outputs.token }}' | |
- name: Renovate | |
uses: renovatebot/[email protected] | |
if: ${{ github.ref == 'refs/heads/main' }} | |
with: | |
configurationFile: .github/renovate.json | |
token: 'x-access-token:${{ steps.generate_token.outputs.token }}' | |