From fed515ace82a19e56e7860298b20643a377b9eac Mon Sep 17 00:00:00 2001 From: Joonas Hiltunen Date: Fri, 31 Oct 2025 13:58:29 +0200 Subject: [PATCH 1/2] Add shared "check renovatebot config" action --- .../shared-check-renovatebot-config.yml | 29 +++++++++++++++++++ README.md | 9 +++--- 2 files changed, 34 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/shared-check-renovatebot-config.yml diff --git a/.github/workflows/shared-check-renovatebot-config.yml b/.github/workflows/shared-check-renovatebot-config.yml new file mode 100644 index 0000000..189742c --- /dev/null +++ b/.github/workflows/shared-check-renovatebot-config.yml @@ -0,0 +1,29 @@ +name: Shared check renovatebot config + +on: + workflow_call: + inputs: + config_file_path: + description: Path to the Renovatebot config file to validate + type: string + required: true + checkout_submodules: + description: Whether to checkout submodules + type: string + required: false + default: "false" + +jobs: + validate: + name: Validate renovatebot config + runs-on: ubuntu-24.04 + steps: + - name: Checkout + uses: actions/checkout@v5 + with: + submodules: ${{ inputs.checkout_submodules }} + + - name: Validate config + uses: suzuki-shunsuke/github-action-renovate-config-validator@c22827f47f4f4a5364bdba19e1fe36907ef1318e # v1.1.1 + with: + config_file_path: ${{ inputs.config_file_path }} diff --git a/README.md b/README.md index 54ed086..dbb934e 100644 --- a/README.md +++ b/README.md @@ -294,10 +294,11 @@ onboarding flow ends. Example: ``` -- name: Validate - uses: suzuki-shunsuke/github-action-renovate-config-validator@v0.1.3 - with: - config_file_path: .github/renovate.json5 +jobs: + validate: + uses: HSLdevcom/jore4-tools/.github/workflows/shared-check-renovatebot-config.yml@shared-check-renovatebot-config-v1 + with: + config_file_path: renovatebot/jore4-default-preset.json5 ``` To see a bit more in detail how the renovatebot rules work, check the comments within the From c740d75c1b6290d41223608de3b1bdd79cfe30f4 Mon Sep 17 00:00:00 2001 From: Joonas Hiltunen Date: Fri, 31 Oct 2025 14:07:21 +0200 Subject: [PATCH 2/2] Switch check renovatebot config to use the new composite action --- .github/workflows/check-renovatebot-config.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/check-renovatebot-config.yml b/.github/workflows/check-renovatebot-config.yml index c56bb36..6ff501c 100644 --- a/.github/workflows/check-renovatebot-config.yml +++ b/.github/workflows/check-renovatebot-config.yml @@ -8,13 +8,6 @@ on: jobs: validate: - name: Validate renovatebot config - runs-on: ubuntu-24.04 - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Validate - uses: suzuki-shunsuke/github-action-renovate-config-validator@v0.1.3 - with: - config_file_path: renovatebot/jore4-default-preset.json5 + uses: HSLdevcom/jore4-tools/.github/workflows/shared-check-renovatebot-config.yml@shared-check-renovatebot-config-v1 + with: + config_file_path: renovatebot/jore4-default-preset.json5