Daily validation of components which are generated from other repos #414
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: 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" |