1
0

validate-rgas.yml 838 B

12345678910111213141516171819202122232425
  1. name: RGA schema validator
  2. on:
  3. push:
  4. branches: [ master, staging, stable ]
  5. merge_group:
  6. pull_request:
  7. types: [ opened, reopened, synchronize, ready_for_review ]
  8. jobs:
  9. yaml-schema-validation:
  10. name: YAML RGA schema validator
  11. if: github.actor != 'PJBot' && github.event.pull_request.draft == false
  12. runs-on: ubuntu-latest
  13. steps:
  14. - uses: actions/checkout@v3.6.0
  15. - name: Setup Submodule
  16. run: git submodule update --init
  17. - name: Pull engine updates
  18. uses: space-wizards/submodule-dependency@v0.1.5
  19. - uses: PaulRitter/yaml-schema-validator@v1
  20. with:
  21. schema: RobustToolbox/Schemas/rga.yml
  22. path_pattern: .*attributions.ya?ml$
  23. validators_path: RobustToolbox/Schemas/rga_validators.py
  24. validators_requirements: RobustToolbox/Schemas/rga_requirements.txt