From d33bd0f5364c1804dc1887dd9d62b62e3e910b4e Mon Sep 17 00:00:00 2001 From: Ken Kaizu Date: Tue, 20 Dec 2022 08:00:01 +0900 Subject: [PATCH] renovate: maintenance renovate config/ci (#2832) * add renovate config validator github action * renovate allow update node LTS docker image / aggregate testing-env docker image update PR * Update .github/workflows/renovate-config.yml Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com> * renovate config validate run npx directly * revert invalid renovate syntax Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com> --- .github/renovate.json5 | 7 ++++++- .github/workflows/renovate-config.yml | 20 ++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/renovate-config.yml diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 0b5e176bb9..cec7326923 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -32,11 +32,16 @@ }, { // we need to upgrade testing-env on ci quickly - matchPaths: [".github/**"], matchPackageNames: ["ghcr.io/runatlantis/testing-env"], groupName: "testing-env-ci-test", schedule: ["every 1 hour after 00:00 and before 23:59 every day"], }, + { + // use LTS node version for node docker image + matchDatasources: ["docker"], + matchPackageNames: ["node"], + versioning: "node", + }, ], // https://docs.renovatebot.com/modules/manager/regex/ regexManagers: [ diff --git a/.github/workflows/renovate-config.yml b/.github/workflows/renovate-config.yml new file mode 100644 index 0000000000..bbdbe8468a --- /dev/null +++ b/.github/workflows/renovate-config.yml @@ -0,0 +1,20 @@ +name: renovate-config + +on: + push: + paths: + - '.github/renovate.json5' + branches: + - main + pull_request: + paths: + - '.github/renovate.json5' + workflow_dispatch: + +jobs: + validate: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3.2.0 + - uses: actions/setup-node@v3 + - run: npx --package renovate -c 'renovate-config-validator'