Skip to content
This repository was archived by the owner on Jul 13, 2026. It is now read-only.

Commit 9b07bf1

Browse files
committed
Verify bundle files are up to date
Add 'make bundle' to the verification workflow to ensure bundle manifests stay synchronized with code changes.
1 parent 3762028 commit 9b07bf1

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/verify-generation.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ jobs:
1414
- name: Checkout
1515
uses: actions/checkout@v5
1616

17+
- name: Install yq using apt
18+
run: |
19+
sudo apt-get update
20+
sudo apt-get install -y yq
21+
1722
- name: Set up Go
1823
uses: actions/setup-go@v6
1924

@@ -25,6 +30,12 @@ jobs:
2530

2631
- name: Verify generated files are up to date and fail if anything changed
2732
run: |
33+
OLD_CREATED_AT=$(yq '.metadata.annotations.createdAt' bundle/manifests/openstack-lightspeed-operator.clusterserviceversion.yaml)
34+
2835
make generate
2936
make manifests
37+
make bundle
3038
git diff --exit-code
39+
40+
yq -i ".metadata.annotations.createdAt = \"${OLD_CREATED_AT}\"" bundle/manifests/your-operator.clusterserviceversion.yaml
41+

0 commit comments

Comments
 (0)