aaz/.github/workflows/verify-metadata.yml

38 строки
780 B
YAML
Исходник Обычный вид История

2023-07-18 10:15:01 +03:00
name: Verify Metadata
on:
2023-07-19 08:05:50 +03:00
pull_request:
2023-07-18 10:15:01 +03:00
branches:
- main
types:
- opened
2023-07-20 05:53:36 +03:00
- reopened
2023-07-18 10:15:01 +03:00
- synchronize
jobs:
build:
runs-on: ubuntu-latest
steps:
2023-07-19 06:19:33 +03:00
- name: Checkout repository
2023-07-19 08:30:31 +03:00
uses: actions/checkout@v3
2023-07-18 10:15:01 +03:00
2023-07-19 06:19:33 +03:00
- name: Setup Python
2023-07-19 08:30:31 +03:00
uses: actions/setup-python@v3
2023-07-18 10:15:01 +03:00
with:
2023-07-19 10:45:46 +03:00
python-version: '3.10'
2023-07-18 10:15:01 +03:00
- name: Install `aaz-dev`
run: pip install aaz-dev
2023-07-19 10:45:46 +03:00
- name: Verify data consistency
id: verification
run: aaz-dev command-model verify --aaz-path $GITHUB_WORKSPACE
continue-on-error: true
- name: Check on exception
if: steps.verification.outcome != 'success'
2023-07-18 10:15:01 +03:00
run: |
2023-07-19 10:45:46 +03:00
echo "Please pull the latest <main> branch, and <Export> your command model again."
exit 1