From a9eab7b78e65ae4de7616fc725ee1648d314a8ce Mon Sep 17 00:00:00 2001 From: mirek163 <95099003+mirek163@users.noreply.github.com> Date: Tue, 6 Aug 2024 13:14:48 +0200 Subject: [PATCH] Adding Renovate with configs (#3667) * 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 --- .github/workflows/renovate-bot.yml | 27 +++++++++++++++++++++++++++ renovate-config.js | 15 +++++++++++++++ renovate.json | 3 +++ 3 files changed, 45 insertions(+) create mode 100644 .github/workflows/renovate-bot.yml create mode 100644 renovate-config.js create mode 100644 renovate.json diff --git a/.github/workflows/renovate-bot.yml b/.github/workflows/renovate-bot.yml new file mode 100644 index 0000000000..ac741ae13c --- /dev/null +++ b/.github/workflows/renovate-bot.yml @@ -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 diff --git a/renovate-config.js b/renovate-config.js new file mode 100644 index 0000000000..c437b76de1 --- /dev/null +++ b/renovate-config.js @@ -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 +}; diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000000..977534669c --- /dev/null +++ b/renovate.json @@ -0,0 +1,3 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json" +}