mirror of
https://github.com/wega-team/ss14-wega.git
synced 2026-02-14 19:30:01 +01:00
41 lines
1.4 KiB
YAML
41 lines
1.4 KiB
YAML
name: RGA schema validator
|
|
on:
|
|
push:
|
|
branches: [ master, staging, stable ]
|
|
merge_group:
|
|
pull_request:
|
|
types: [ opened, reopened, synchronize, ready_for_review ]
|
|
|
|
jobs:
|
|
yaml-schema-validation:
|
|
name: YAML RGA schema validator
|
|
if: github.actor != 'IanComradeBot' && github.event.pull_request.draft == false
|
|
runs-on: [self-hosted]
|
|
steps:
|
|
- uses: actions/checkout@v4.2.2
|
|
- 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 -p ~/.ssh
|
|
echo "${{ secrets.SECRETS_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
|
chmod 600 ~/.ssh/id_rsa
|
|
echo "HOST *" > ~/.ssh/config
|
|
echo " Hostname github.com" >> ~/.ssh/config
|
|
echo " Port 22" >> ~/.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/submodule-dependency@v0.1.5
|
|
- uses: PaulRitter/yaml-schema-validator@v1
|
|
with:
|
|
schema: RobustToolbox/Schemas/rga.yml
|
|
path_pattern: .*attributions.ya?ml$
|
|
validators_path: RobustToolbox/Schemas/rga_validators.py
|
|
validators_requirements: RobustToolbox/Schemas/rga_requirements.txt
|