From c026d3846578a740f53a1312d58f216b2bec2269 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Fri, 10 Jan 2025 22:22:32 +0100 Subject: [PATCH] Update docs workflow Mostly just fluff, but now uses the proper github actions bot user --- .github/workflows/docs.yml | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 11d7276..8d9e80c 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -4,29 +4,34 @@ on: push: branches: - master + jobs: docs: runs-on: ubuntu-latest steps: - - name: Clone project - uses: actions/checkout@v4 - - name: Clone wiki uses: actions/checkout@v4 with: repository: ${{ github.repository }}.wiki - path: .wiki + + - name: Clone project + uses: actions/checkout@v4 + with: + path: addon - name: Parse and generate docs uses: p3lim/lua-doc-parser@v2 + working-directory: addon with: - output: .wiki + output: ${{ github.workspace }} + + - name: Setup Git + run: | + git config user.name 'github-actions[bot]' + git config user.email "<41898282+github-actions[bot]@users.noreply.github.com>" - - name: Push docs + - name: Commit and push docs run: | - cd .wiki - git config user.name CI - git config user.email "<>" - git add . + git add *.md git diff --quiet HEAD || git commit -m '${{ github.sha }}' git push