diff --git a/.github/renovate.js b/.github/renovate.js new file mode 100644 index 0000000..7ad2e07 --- /dev/null +++ b/.github/renovate.js @@ -0,0 +1,27 @@ +module.exports = { + branchPrefix: 'test-renovate/', + dryRun: true, + username: 'renovate-release', + gitAuthor: 'Renovate Bot ', + onboarding: false, + platform: 'github', + includeForks: false, + repositories: [ + 'hikhvar/mqtt2prometheus', + ], + packageRules: [ + { + description: 'lockFileMaintenance', + matchUpdateTypes: [ + 'pin', + 'digest', + 'patch', + 'minor', + 'major', + 'lockFileMaintenance', + ], + dependencyDashboardApproval: false, + stabilityDays: 10, + }, + ], +}; diff --git a/.github/workflows/renovate.yaml b/.github/workflows/renovate.yaml new file mode 100644 index 0000000..df352ca --- /dev/null +++ b/.github/workflows/renovate.yaml @@ -0,0 +1,25 @@ +name: Renovate +on: + schedule: + # The "*" (#42, asterisk) character has special semantics in YAML, so this + # string has to be quoted. + - cron: '24 * * * *' +jobs: + renovate: + runs-on: ubuntu-latest + steps: + - name: Get token + id: get_token + uses: machine-learning-apps/actions-app-token@master + with: + APP_PEM: ${{ secrets.APP_PEM }} + APP_ID: ${{ secrets.APP_ID }} + + - name: Checkout + uses: actions/checkout@v2.0.0 + + - name: Self-hosted Renovate + uses: renovatebot/github-action@v32.118.0 + with: + configurationFile: .github/renovate.js + token: 'x-access-token:${{ steps.get_token.outputs.app_token }}' diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..adba6e4 --- /dev/null +++ b/renovate.json @@ -0,0 +1,25 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:base", + ":automergeRequireAllStatusChecks", + ":separateMultipleMajorReleases", + ":separatePatchReleases", + ":renovatePrefix", + ":semanticPrefixChore", + ":prHourlyLimitNone", + ":prConcurrentLimit10" + ], + "automergeType": "pr", + "postUpdateOptions": [ + "gomodTidy" + ], + "labels": [ + "dependencies", + "versions", + "automated" + ], + "rebaseWhen": "behind-base-branch", + "stabilityDays": 10, + "internalChecksFilter": "strict" +}