diff --git a/.github/workflows/rebuild-wiki.yml b/.github/workflows/rebuild-wiki.yml index d2794a1..ee9f68f 100644 --- a/.github/workflows/rebuild-wiki.yml +++ b/.github/workflows/rebuild-wiki.yml @@ -17,18 +17,22 @@ jobs: path: 'wiki' - uses: actions/checkout@v4 + with: + path: 'repo' - name: Install Luvit run: curl -L https://github.com/luvit/lit/raw/master/get-lit.sh | sh - name: Generating wiki pages - run: ./luvit docgen.lua + run: | + cd repo + ../luvit docgen.lua - run: ls $GITHUB_WORKSPACE - name: Updating wiki repo run: | - mv -f ./docs/* $GITHUB_WORKSPACE/wiki + mv -f $GITHUB_WORKSPACE/repo/docs/* $GITHUB_WORKSPACE/wiki/ cd $GITHUB_WORKSPACE/wiki git add . git commit -m '$(git rev-parse --short --verify main)'