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" +}