docs: separate coverage from readme #130
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: Generate Readme | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - ".github/workflows/readme.yml" | |
| - ".github/scripts/generate-coverage.nu" | |
| - ".doc/resources/*" | |
| - "fmt/resources/*.nu" | |
| defaults: | |
| run: | |
| shell: nu {0} | |
| permissions: | |
| contents: write | |
| jobs: | |
| update-readme: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: true | |
| - name: Set up Nushell | |
| uses: hustcer/setup-nu@v3 | |
| - name: Generate Readme | |
| run: | | |
| nu .github/scripts/generate-coverage.nu | |
| - name: Commit & push changes | |
| run: | | |
| git config --global user.name "nucleus" | |
| git config --global user.email "nucleus@users.noreply.github.com" | |
| git add .doc/resource-coverage/coverage.md | |
| try {git commit -m "docs: update README"} | |
| git push |