Skip to content

feat: added Windows support SHA commit #51

feat: added Windows support SHA commit

feat: added Windows support SHA commit #51

Workflow file for this run

name: docs
on:
push:
branches-ignore:
- main
pull_request:
branches:
- main
paths:
- "README.md"
jobs:
docs:
runs-on: ubuntu-latest
permissions:
actions: write
contents: write
steps:
- uses: actions/checkout@v4
- name: Generating docs with panvimdoc
uses: kdheepak/panvimdoc@main
with:
vimdoc: freeze-code.nvim
version: "Neovim >= 0.9.0"
demojify: true
treesitter: true
- name: Update documentation
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMMIT_MSG: |
docs: update `doc/freeze-code.nvim.txt`
skip-checks: true
run: |
git config user.email "github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
git add doc/
# Only commit and push if we have changes
git diff --quiet && git diff --staged --quiet || (git commit -m "${COMMIT_MSG}"; git push origin HEAD:${GITHUB_REF})