fix: properly error when failing to load module using `:Neorg module … #1192
This file contains 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: Automatically Generate Documentation | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
generate-documentation: | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- nightly | |
name: Generate Markdown Docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Plenary | |
uses: actions/checkout@v4 | |
with: | |
repository: nvim-lua/plenary.nvim | |
path: plenary.nvim | |
- name: Install Treesitter | |
uses: actions/checkout@v4 | |
with: | |
repository: nvim-treesitter/nvim-treesitter | |
path: nvim-treesitter | |
- name: Install Neovim | |
uses: rhysd/action-setup-vim@v1 | |
id: neovim | |
with: | |
neovim: true | |
version: ${{ matrix.version }} | |
- uses: leafo/gh-actions-lua@v9 | |
with: | |
luaVersion: "luajit-2.1.0-beta3" | |
- uses: leafo/gh-actions-luarocks@v4 | |
- name: Install all required modules | |
run: | | |
luarocks config lua_version 5.1 | |
luarocks install --lua-version=5.1 neorg --deps-only | |
- name: Clone Wiki | |
uses: actions/checkout@v4 | |
with: | |
repository: "nvim-neorg/neorg.wiki" | |
path: wiki/ | |
- name: Run Documentation Generator | |
run: | | |
if ls wiki/*.md 1> /dev/null 2>&1; then | |
rm wiki/*.md | |
fi | |
make documentation | |
- name: Commit Wiki Changes | |
run: | | |
cd wiki/ | |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
if [[ ! -z $(git status -s) ]]; then | |
git add . | |
git commit -m "chore: autoupdate github wiki" | |
fi | |
- name: Push Wiki to Github | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
repository: "nvim-neorg/neorg.wiki" | |
branch: master | |
force: true | |
directory: ./wiki |