Skip to content

Daily validation of components which are generated from other repos #414

Daily validation of components which are generated from other repos

Daily validation of components which are generated from other repos #414

name: Daily validation of components which are generated from other repos
on:
schedule:
- cron: '0 0 * * *'
jobs:
build:
if: github.repository == 'vmware/antrea-operator-for-kubernetes'
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: Validate antrea-manifest/antrea.yml
run: |
TMP_MANIFEST=$(mktemp /tmp/antrea.yml.XXXXXXX)
./hack/generate-manifest.sh > $TMP_MANIFEST
cmp -s $TMP_MANIFEST ./antrea-manifest/antrea.yml
RET_CODE=$?
if [ $RET_CODE -ne 0 ]; then
echo "antrea.yml has changed in Antrea repository, update is required"
echo "Regenerate antrea.yml using 'make antrea-manifest'"
exit 1
fi
exit 0
skip:
if: github.repository != 'vmware/antrea-operator-for-kubernetes'
runs-on: [ubuntu-latest]
steps:
- name: Skip
run: |
echo "Skipping validation for this repo"