ci: only run the renovate config check if the config changes
Otherwise it's just wasting time.
This commit is contained in:
parent
b079370cb2
commit
dfc3c31e70
2 changed files with 14 additions and 8 deletions
|
@ -14,14 +14,6 @@ jobs:
|
||||||
nix --version
|
nix --version
|
||||||
# shellcheck disable=SC2016
|
# shellcheck disable=SC2016
|
||||||
nix build --print-build-logs '.#checks.x86_64-linux.${{ matrix.check }}'
|
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:
|
report-size:
|
||||||
runs-on: nixos
|
runs-on: nixos
|
||||||
needs: check
|
needs: check
|
||||||
|
|
14
.forgejo/workflows/renovate.yml
Normal file
14
.forgejo/workflows/renovate.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue