Skip to content

Commit

Permalink
Update lua-docs generation and fix markdown issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Ismoh committed Dec 4, 2023
1 parent 7f84c66 commit 0f534ff
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/lua-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: push

jobs:
generate-lua-docs:
name: 'Generate lua docs'
name: "Generate lua docs"
runs-on: windows-latest

steps:
Expand All @@ -15,20 +15,20 @@ jobs:
env:
GITHUB_CONTEXT: ${{ toJson(github) }}

- name: 'Generate lua docs with lua-language-server'
- name: "Generate lua docs with lua-language-server"
shell: cmd
run: |
${{ github.workspace }}\\.building\\lua-language-server-3.6.18-win32-x64\\bin\\lua-language-server.exe --logpath \"${{ github.workspace }}\\docs\\lua-docs\" --configpath \"${{ github.workspace }}\\docs\\lua-docs\\lua-language-server-config.lua\" --doc \"${{ github.workspace }}\\mods\\noita-mp\\files\\scripts\"
cd ${{ github.workspace }}\\docs\\lua-docs\\
cd ${{ github.workspace }}\\docs\\lua-docs\\
DEL /f *.log
# https://api.github.com/users/github-actions%5Bbot%5D
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Updated generated lua docs"
git push origin
- name: 'Fix wrong paths in lua docs'
- name: "Fix wrong paths in lua docs"
shell: pwsh
run: |
$env:Path += ";C:\Program Files\Git\usr\bin"
Expand All @@ -42,3 +42,13 @@ jobs:
git add .
git commit -m "Updated generated lua docs"
git push origin
fix-markdown-issues:
name: "Fix markdown errors"
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3

- name: Lint changelog file
uses: docker://avtodev/markdown-lint:v1

0 comments on commit 0f534ff

Please sign in to comment.