Skip to content

Commit

Permalink
Adding Renovate with configs (#3667)
Browse files Browse the repository at this point in the history
* Adding Renovate with configs

* Addressing review

Signed-off-by: mirek163 <95099003+mirek163@users.noreply.github.com>

* Addressing review

Signed-off-by: mirek163 <95099003+mirek163@users.noreply.github.com>

* Update renovate-config.js

Signed-off-by: mirek163 <95099003+mirek163@users.noreply.github.com>

* Adressing review

Signed-off-by: mirek163 <95099003+mirek163@users.noreply.github.com>

* Update renovate-config.js

Signed-off-by: mirek163 <95099003+mirek163@users.noreply.github.com>

* Update renovate-bot.yml

Signed-off-by: mirek163 <95099003+mirek163@users.noreply.github.com>

* Adding prTitle & label

Signed-off-by: mirek163 <95099003+mirek163@users.noreply.github.com>

* changing deprecated prTitle

Signed-off-by: mirek163 <95099003+mirek163@users.noreply.github.com>

* Switch to github_token

Signed-off-by: mirek163 <95099003+mirek163@users.noreply.github.com>

* WIP

Signed-off-by: mirek163 <95099003+mirek163@users.noreply.github.com>

* Update renovate-config.js

Signed-off-by: mirek163 <95099003+mirek163@users.noreply.github.com>

---------

Signed-off-by: mirek163 <95099003+mirek163@users.noreply.github.com>
Co-authored-by: Elena Kubantseva <elena.kubantseva@broadcom.com>
  • Loading branch information
mirek163 and arxioly authored Aug 6, 2024
1 parent 48c6734 commit a9eab7b
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/renovate-bot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Renovate

on:
schedule:
- cron: '0 0 * * 1-5' #UTC
workflow_dispatch:

jobs:
renovate:
runs-on: ubuntu-latest

container:
image: ghcr.io/renovatebot/renovate
options: --user root # workaround for checkout

steps:
- name: Check out repository
uses: actions/checkout@v4 # using checkout to access workspace

- name: Run Renovate
env:
# RENOVATE_TOKEN should have access :read_user, api, write_repository (repo checkbox)
RENOVATE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RENOVATE_CONFIG_FILE: ${{ github.workspace }}/renovate-config.js
LOG_LEVEL: error
run: |
renovate
15 changes: 15 additions & 0 deletions renovate-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
extends: ["config:recommended", "group:allNonMajor"],
major:
{ dependencyDashboardApproval: true },
dependencyDashboard: true,
repositories: ['zowe/api-layer'],
baseBranches: ["v2.x.x","v3.x.x"],
printConfig: true,
labels: ["dependencies"],
commitMessagePrefix:
'chore: ',
prHourlyLimit: 0, // removes rate limit for PR creation per hour
npmrc: "legacy-peer-deps=true", //for updating lock-files
npmrcMerge: true //be combined with a "global" npmrc
};
3 changes: 3 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
}

0 comments on commit a9eab7b

Please sign in to comment.