Skip to content

Commit e5ece24

Browse files
committed
Add preflight check for ci and on push in generating full install manifests
1 parent 3eb6294 commit e5ece24

2 files changed

Lines changed: 22 additions & 3 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,23 @@ jobs:
4545
git diff --exit-code
4646
git diff --cached --exit-code
4747
48+
manifest-bundle-diff:
49+
name: Manifest Bundle Diff
50+
runs-on: ubuntu-latest
51+
needs:
52+
- changes
53+
if: |
54+
(needs.changes.outputs.charts == 'true') ||
55+
(needs.changes.outputs.make == 'true')
56+
steps:
57+
- uses: actions/checkout@v6
58+
- uses: nixbuild/nix-quick-install-action@v34
59+
- uses: DeterminateSystems/magic-nix-cache-action@b8276522d77f21bf19d3574e5bc99186a6c7aa6c
60+
- name: Generate manifest bundle
61+
run: nix develop --command make manifest-bundle
62+
- name: Fail if there are uncommitted manifest bundle changes
63+
run: git diff --exit-code manifest-bundle.yaml
64+
4865
lint:
4966
name: Lint
5067
runs-on: ubuntu-latest

.github/workflows/generate-full-install-manifests.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
name: 'Generate full install manifests'
22

33
on:
4-
pull_request_target:
4+
push:
55
branches:
66
- main
77
paths:
88
- 'helm/**/*'
9+
- 'Makefile'
10+
- 'tools/make/**'
11+
912
permissions:
1013
contents: write
14+
1115
jobs:
1216
update-full-install:
1317
name: Update full install
@@ -17,8 +21,6 @@ jobs:
1721
- name: Checkout repo
1822
uses: actions/checkout@v6
1923
with:
20-
ref: ${{github.event.pull_request.head.ref}}
21-
repository: ${{github.event.pull_request.head.repo.full_name}}
2224
token: ${{ secrets.GITHUB_TOKEN }}
2325
- name: Install Nix
2426
uses: nixbuild/nix-quick-install-action@v34

0 commit comments

Comments
 (0)