From 70cedacc77d1f6d8ff54435d2a07a86455a4443d Mon Sep 17 00:00:00 2001 From: smokestacklightnin <125844868+smokestacklightnin@users.noreply.github.com> Date: Sat, 16 Nov 2024 02:50:47 -0800 Subject: [PATCH 1/4] Add pre-commit trigger for renovate config --- .pre-commit-config.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d1074a186..d85a55ae8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -82,3 +82,8 @@ repos: - id: terraform_fmt args: - --args=-write=true + + - repo: https://github.com/renovatebot/pre-commit-hooks + rev: 39.17.1 + hooks: + - id: renovate-config-validator From cbabdb0386c0c3dc33e909b88233a3c22f8dd044 Mon Sep 17 00:00:00 2001 From: smokestacklightnin <125844868+smokestacklightnin@users.noreply.github.com> Date: Sat, 16 Nov 2024 03:01:52 -0800 Subject: [PATCH 2/4] Add Renovate github actions workflow --- .github/workflows/renovate.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/renovate.yml diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml new file mode 100644 index 000000000..0a5231bce --- /dev/null +++ b/.github/workflows/renovate.yml @@ -0,0 +1,19 @@ +name: Renovate +on: + workflow_dispatch: + schedule: + # The "*" (#42, asterisk) character has special semantics in YAML, so this + # string has to be quoted. + - cron: '0/5 * * * *' +jobs: + renovate: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4.2.2 + - name: Self-hosted Renovate + uses: renovatebot/github-action@v40.3.5 + with: + token: ${{ secrets.RENOVATE_TOKEN }} + env: + RENOVATE_REPOSITORIES: "smokestacklightnin/nebari" From 239d540bdbaf1baed6b2a699ce762780bee34398 Mon Sep 17 00:00:00 2001 From: smokestacklightnin <125844868+smokestacklightnin@users.noreply.github.com> Date: Sat, 16 Nov 2024 03:03:08 -0800 Subject: [PATCH 3/4] Add renovate repository config --- renovate.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 renovate.json diff --git a/renovate.json b/renovate.json new file mode 100644 index 000000000..0157816b3 --- /dev/null +++ b/renovate.json @@ -0,0 +1,20 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:recommended" + ], + "packageRules": [ + { + "allowedVersions": "<6.0", + "matchPackageNames": [ + "hashicorp/google" + ] + }, + { + "allowedVersions": "<=1.5.0", + "matchPackageNames": [ + "hashicorp/terraform" + ] + } + ] +} From ba209a6610ab3886f9b15875939332ebb95d9387 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sat, 16 Nov 2024 13:02:14 +0000 Subject: [PATCH 4/4] Update renovatebot/github-action action to v40.3.6 --- .github/workflows/renovate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml index 0a5231bce..b22a237ef 100644 --- a/.github/workflows/renovate.yml +++ b/.github/workflows/renovate.yml @@ -12,7 +12,7 @@ jobs: - name: Checkout uses: actions/checkout@v4.2.2 - name: Self-hosted Renovate - uses: renovatebot/github-action@v40.3.5 + uses: renovatebot/github-action@v40.3.6 with: token: ${{ secrets.RENOVATE_TOKEN }} env: