Skip to content

Commit

Permalink
⚡ replacing renovate bot with bb-17
Browse files Browse the repository at this point in the history
  • Loading branch information
chrede88 committed Oct 21, 2024
1 parent 87ef906 commit 26c5d4c
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 7 deletions.
11 changes: 6 additions & 5 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
"config:recommended"
],
"dependencyDashboardTitle": "Renovate Dashboard 🤖",
"commitMessagePrefix": "🤖",
"commitMessageTopic": "{{depName}}",
"commitMessageExtra": "to {{newVersion}}",
"commitMessageSuffix": "",
"prConcurrentLimit": 0,
"prHourlyLimit": 0,
"reviewers": ["chrede88"],
"timezone": "Europe/Zurich",
"schedule": [
"after 6pm and before 6am every weekday",
"every weekend"
],
"customManagers": [
{
"description": "Update Hugo/Go version in Github actions",
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/auto-merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
enable-auto-merge:
runs-on: ubuntu-latest

if: github.event.pull_request.user.login == 'renovate[bot]' && contains(github.event.pull_request.labels.*.name, 'auto-merge')
if: github.event.pull_request.user.login == 'bb-17[bot]' && contains(github.event.pull_request.labels.*.name, 'auto-merge')
steps:
- uses: alexwilson/enable-github-automerge-action@2.0.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
50 changes: 50 additions & 0 deletions .github/workflows/renovate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
name: "Renovate"

on:
workflow_dispatch:

schedule:
- cron: "0 * * * *" # Every hour
push:
branches: ["main"]
paths:
- .github/renovate.json

permissions:
packages: read

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true

env:
LOG_LEVEL: "debug"
RENOVATE_AUTODISCOVER: true
RENOVATE_AUTODISCOVER_FILTER: "${{ github.repository }}"
RENOVATE_PLATFORM: github
RENOVATE_PLATFORM_COMMIT: true
RENOVATE_BOT_NAME: "bb-17"

jobs:
renovate:
name: Renovate
runs-on: ubuntu-latest
steps:
- name: Generate Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: "${{ secrets.BOT_APP_ID }}"
private-key: "${{ secrets.BOT_PRIVATE_KEY }}"

- name: Checkout
uses: actions/checkout@v4
with:
token: "${{ steps.app-token.outputs.token }}"

- name: Renovate
uses: renovatebot/github-action@v40.3.4
with:
configurationFile: .github/renovate.json
token: "${{ steps.app-token.outputs.token }}"

0 comments on commit 26c5d4c

Please sign in to comment.