Add CI status badge #89
Workflow file for this run
This file contains 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: Check README.md is in sync | |
on: | |
pull_request: | |
push: | |
branches: [ master ] | |
jobs: | |
# Fail CI if repo is in dirty state after bin/update_readme | |
update-readme: | |
name: bin/update_readme | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
- name: Install Composer dependencies | |
run: composer install --no-progress --prefer-dist | |
- name: Check status | |
run: ./bin/update_readme && git diff --exit-code README.md |