Skip to content

Commit

Permalink
chore!(sync): fail fast and validate earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
hugotiburtino committed Oct 29, 2024
1 parent 6117b52 commit 8cda6c5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/datenraum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ on:
jobs:
sync_datenraum:
runs-on: ubuntu-latest
# strategy:
# fail-fast: false

steps:
- uses: actions/checkout@v4
Expand All @@ -34,6 +32,9 @@ jobs:
- name: Download metadata from Serlo Metadata API
run: pipenv run python download_metadata.py public/serlo-metadata.json

- name: Validate nodes according to AMB Schema
run: pipenv run python validate_nodes.py

- name: Set credentials for Datenraum
run: |
echo "DATENRAUM_ENVIRONMENT=demo" >> "$GITHUB_ENV"
Expand All @@ -43,8 +44,5 @@ jobs:
- name: Download metadata from Datenraum
run: pipenv run python download_datenraum_nodes.py public/serlo-datenraum.json

- name: Validate nodes according to AMB Schema
run: pipenv run python validate_nodes.py

- name: Sync metadata from Serlo Metadata API to Datenraum
run: pipenv run python update_datenraum_nodes.py public/serlo-metadata.json public/serlo-datenraum.json

0 comments on commit 8cda6c5

Please sign in to comment.