Clean up README per #489, add pictures of both sides. (#552) #293
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: Parse parts lists | |
| on: | |
| pull_request: | |
| push: | |
| branches: [master, v2] | |
| jobs: | |
| generate_md: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: generate_parts_list_md | |
| run: | | |
| cd parts_list | |
| python3 csv_to_md.py | |
| # On pull requests: check the generated file is up to date and fail with a clear message if not | |
| - name: Check for outdated generated files | |
| if: github.event_name == 'pull_request' | |
| run: | | |
| if ! git diff --exit-code -- parts_list/README.md; then | |
| echo "" | |
| echo "::error::parts_list/README.md is out of date. Please run 'cd parts_list && python3 csv_to_md.py' locally and commit the result." | |
| exit 1 | |
| fi | |
| # On direct pushes to repo branches: auto-commit the generated files if changed | |
| - if: github.event_name == 'push' | |
| uses: int128/update-generated-files-action@v2 |