-
Notifications
You must be signed in to change notification settings - Fork 109
49 lines (42 loc) · 1.2 KB
/
validate+sync.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: validate & sync
on:
workflow_dispatch:
pull_request:
branches: [ master ]
jobs:
lint-and-validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- 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/[email protected]
with:
schema: docs/config-schema.json
files: configs/conferences/**/config.json
mirror:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Mirror to VOC gitolite
env:
secrets_available: ${{ secrets.SSH_PRIVATE_KEY }} != ''
if: ${{ env.secrets_available }}
uses: pixta-dev/[email protected]
with:
target_repo_url:
[email protected]:streaming-website.git
ssh_private_key:
${{ secrets.SSH_PRIVATE_KEY }}