CRD Sync Validation #545
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CRD Sync Validation | |
on: | |
schedule: | |
# every midnight | |
- cron: '0 0 * * *' | |
defaults: | |
run: | |
shell: bash | |
working-directory: governance-policy-addon-controller | |
jobs: | |
crd-sync-validation: | |
if: github.repository_owner == 'stolostron' | |
runs-on: ubuntu-latest | |
name: CRD Sync Validation | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
path: governance-policy-addon-controller | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version-file: governance-policy-addon-controller/go.mod | |
- name: Synchronize CRDs | |
run: | | |
./build/crd-sync.sh | |
- name: Check for any changes | |
run: | | |
git diff --exit-code | |