Merge pull request #523 from Julian/dependabot/github_actions/actions… #896
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: Regenerate Documentation | |
| on: | |
| push: | |
| branches-ignore: | |
| - "benchmark*" | |
| - "wip*" | |
| workflow_dispatch: | |
| permissions: {} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| docs: | |
| name: Regenerate vimdocs | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # for committing regenerated vimdocs | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| persist-credentials: true | |
| - uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 | |
| - name: Install Neovim | |
| uses: rhysd/action-setup-vim@febef33995d6649302e9d88dda81e071b68f16a7 | |
| with: | |
| neovim: true | |
| - uses: actions-rust-lang/setup-rust-toolchain@46268bd060767258de96ed93c1251119784f2ab6 | |
| - name: Install vimcats | |
| run: cargo install vimcats --features=cli --force | |
| - name: Generate docs | |
| run: just docs | |
| - name: Commit | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add doc/*.txt | |
| if ! git diff --staged --quiet; then | |
| git commit -m "Regenerate vimdocs" | |
| git push | |
| fi |