Skip to content

Commit da96292

Browse files
committed
Update wiki
1 parent aa09f39 commit da96292

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/tests.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ jobs:
1919
tests:
2020
runs-on: ubuntu-latest
2121

22+
permissions:
23+
# Give the default GITHUB_TOKEN write permission to commit and push the
24+
# added or changed files to the repository.
25+
contents: write
26+
2227
steps:
2328
- uses: actions/checkout@v4
2429

@@ -72,6 +77,21 @@ jobs:
7277
target: 'public/'
7378
template: 'default'
7479

80+
- name: Update Wiki
81+
uses: phpDocumentor/[email protected]
82+
83+
- name: Commit submodule changes
84+
run: |
85+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
86+
git config --global user.name "github-actions[bot]"
87+
cd docs/wiki
88+
git add .
89+
git commit -m "Update wiki content [skip ci]" || echo "No changes to commit"
90+
git push
91+
cd ../..
92+
git submodule update --remote --merge
93+
git push
94+
7595
- name: Upload artifact
7696
if: github.ref == 'refs/heads/main'
7797
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)