diff --git a/.github/workflows/renovate-bot.yml b/.github/workflows/renovate-bot.yml index 58d4e1db1c..8beb160776 100644 --- a/.github/workflows/renovate-bot.yml +++ b/.github/workflows/renovate-bot.yml @@ -4,25 +4,30 @@ on: schedule: - cron: '0 0 * * 1-5' #UTC workflow_dispatch: + inputs: + log_level: + description: Renovate LOG_LEVEL (see https://docs.renovatebot.com/troubleshooting/#log-levels) + required: false + default: info + type: choice + options: + - trace + - debug + - info 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 + uses: renovatebot/github-action@v46.1.8 + with: + configurationFile: ${{ github.workspace }}/renovate-config.js + token: ${{ secrets.ROBOT_PAT }} env: - # RENOVATE_TOKEN should have access :read_user, api, write_repository (repo checkbox) - RENOVATE_TOKEN: ${{ secrets.ROBOT_PAT }} - RENOVATE_CONFIG_FILE: ${{ github.workspace }}/renovate-config.js RENOVATE_GIT_AUTHOR: "Renovate Bot " - LOG_LEVEL: error - run: | - renovate + LOG_LEVEL: ${{ github.event_name == 'workflow_dispatch' && inputs.log_level || 'info' }} diff --git a/renovate-config.js b/renovate-config.js index bd679b47c0..ff9ff08fc6 100644 --- a/renovate-config.js +++ b/renovate-config.js @@ -1,4 +1,5 @@ module.exports = { + binarySource: "install", globalExtends: ["config:recommended"], // using this instead of "extends" solves the problem with order of the configuration repositories: ['zowe/api-layer'], baseBranches: ["v2.x.x", "v3.x.x"],