Skip to content

Commit

Permalink
fix the checkout path of wiki repo
Browse files Browse the repository at this point in the history
attempt to fix wiki checkout failure

attempt to fix git credentials

attempt to fix wiki build

Update rebuild-wiki.yml

Update rebuild-wiki.yml

Set git credentials

Finalize the wiki build action
  • Loading branch information
Bilal2453 committed Jul 20, 2024
1 parent 639e483 commit 1ad4316
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/rebuild-wiki.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,28 @@ jobs:

steps:
- uses: actions/checkout@v4

- run: echo ${{ github.repository }}

- run: echo $github.repository
with:
repository: '${{ github.repository }}.wiki'
path: 'wiki'

- uses: actions/checkout@v4
with:
repository: '${{ github.repository }}.wiki.git'
path: '/wiki'
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
- name: Updating wiki repo
run: |
mv -f ./docs/* ./wiki/
cd ./wiki
mv -f $GITHUB_WORKSPACE/repo/docs/* $GITHUB_WORKSPACE/wiki/
cd $GITHUB_WORKSPACE/wiki
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
git commit -m '$(git rev-parse --short --verify main)'
git commit -m "Rebuild for commit #$(git rev-parse --short --verify main)"
git push

0 comments on commit 1ad4316

Please sign in to comment.