Skip to content

Commit

Permalink
Update and rename mirroring.yml to validate+sync.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
saerdnaer authored Jun 26, 2024
1 parent 4254d12 commit 97d5932
Showing 1 changed file with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Mirroring
name: validate & sync

on:
workflow_dispatch:
pull_request:
branches: [ master ]

jobs:
linter:
lint-and-validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -16,7 +16,22 @@ jobs:
- name: PHP Lint
uses: michaelw90/[email protected]

- name: Check for any changed config.json files
id: check-for-changed-configs
uses: tj-actions/changed-files@v41
with:
files: |
configs/conferences/**/config.json
- name: Validate json files
if: steps.check-for-changed-configs.outputs.any_changed == 'true'
uses: dsanders11/json-schema-validate-action
with:
schema: docs/config-schema.json
files: configs/conferences/**/config.json

mirror:
if: secrets.SSH_PRIVATE_KEY != ''
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 97d5932

Please sign in to comment.