Auto CL update (#498) #42
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: Map file schema validator | |
on: | |
push: | |
branches: [ master, staging, trying ] | |
merge_group: | |
pull_request: | |
types: [ opened, reopened, synchronize, ready_for_review ] | |
jobs: | |
yaml-schema-validation: | |
name: YAML map schema validator | |
if: github.actor != 'IanComradeBot' && github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Setup Submodule | |
run: git submodule update --init | |
# Corvax-Secrets-Start | |
- name: Setup secrets | |
env: | |
SSH_KEY: ${{ secrets.SECRETS_PRIVATE_KEY }} | |
if: ${{ env.SSH_KEY != '' }} | |
run: | | |
mkdir ~/.ssh | |
echo "${{ secrets.SECRETS_PRIVATE_KEY }}" > ~/.ssh/id_rsa | |
chmod 600 ~/.ssh/id_rsa | |
echo "HOST *" > ~/.ssh/config | |
echo "StrictHostKeyChecking no" >> ~/.ssh/config | |
git -c submodule.Secrets.update=checkout submodule update --init | |
# Corvax-Secrets-End | |
- name: Pull engine updates | |
uses: space-wizards/[email protected] | |
- uses: PaulRitter/yaml-schema-validator@v1 | |
with: | |
schema: RobustToolbox/Schemas/mapfile.yml | |
path_pattern: .*Resources/Maps/.* | |
validators_path: RobustToolbox/Schemas/mapfile_validators.py | |
validators_requirements: RobustToolbox/Schemas/mapfile_requirements.txt |