Sync website #16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }}" |