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 committed Jun 26, 2024
1 parent 4254d12 commit 7f31574
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 32 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/mirroring.yml

This file was deleted.

49 changes: 49 additions & 0 deletions .github/workflows/validate+sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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 }}

0 comments on commit 7f31574

Please sign in to comment.