refactor: rename putior_skills() to putior_guide() and sync terminology #3
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
| # Auto-refresh README.md Mermaid diagrams with current putior output | |
| # Runs update-readme.R on push to main, commits changes if any | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'R/**' | |
| - 'inst/examples/update-readme.R' | |
| - '_pkgdown.yml' | |
| workflow_dispatch: | |
| name: update-readme | |
| jobs: | |
| update-readme: | |
| runs-on: ubuntu-latest | |
| env: | |
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: r-lib/actions/setup-r@v2 | |
| with: | |
| use-public-rspm: true | |
| - uses: r-lib/actions/setup-r-dependencies@v2 | |
| with: | |
| extra-packages: local::. | |
| needs: website | |
| - name: Update README examples | |
| run: source("inst/examples/update-readme.R") | |
| shell: Rscript {0} | |
| - name: Commit and push if changed | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add README.md | |
| git diff --quiet --cached || git commit -m "docs: auto-refresh README diagrams [skip ci]" | |
| git push |