Skip to content

Sync website

Sync website #16

Workflow file for this run

name: Sync website
on:
workflow_run:
workflows: ['Split providers into their individual repos']
types:
- completed
jobs:
sync:
name: Add new providers to the website
runs-on: ubuntu-latest
if: >
github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.event == 'push'
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.5'
coverage: none
- name: Install dependencies
run: composer install --no-interaction --prefer-dist
- name: Sync new providers to the website
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_PUSH_TOKEN }}
run: php tools/sync-website.php "${{ github.event.workflow_run.head_sha }}" "${{ github.repository }}"