Skip to content

Commit

Permalink
Update docs workflow
Browse files Browse the repository at this point in the history
Mostly just fluff, but now uses the proper github actions bot user
  • Loading branch information
p3lim committed Jan 10, 2025
1 parent ff9ba95 commit c026d38
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c026d38

Please sign in to comment.