ci: only run the renovate config check if the config changes
All checks were successful
/ check (treefmt) (push) Successful in 3s
/ report-size (push) Successful in 2s

Otherwise it's just wasting time.
This commit is contained in:
Jalil David Salamé Messina 2025-05-13 21:29:45 +02:00
parent b079370cb2
commit dfc3c31e70
Signed by: jalil
GPG key ID: F016B9E770737A0B
2 changed files with 14 additions and 8 deletions

View file

@ -14,14 +14,6 @@ jobs:
nix --version
# shellcheck disable=SC2016
nix build --print-build-logs '.#checks.x86_64-linux.${{ matrix.check }}'
check-renovaterc:
runs-on: nixos
steps:
- uses: "https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # v4
- name: Validate renovaterc.json
run: |
nix --version
nix shell nixpkgs#renovate --command renovate-config-validator
report-size:
runs-on: nixos
needs: check

View file

@ -0,0 +1,14 @@
on:
push:
paths:
# only run if the renovate config changed
- renovate.json
jobs:
check-renovaterc:
runs-on: nixos
steps:
- uses: "https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # v4
- name: Validate renovaterc.json
run: |
nix --version
nix shell nixpkgs#renovate --command renovate-config-validator