Skip to content

Commit 644fcfd

Browse files
committed
Update workflow to configure Git Safe Directory and copy README to Wiki
1 parent 85c55ec commit 644fcfd

File tree

1 file changed

+16
-26
lines changed

1 file changed

+16
-26
lines changed
Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,18 @@
1+
name: Publish wiki
12
on:
2-
push:
3-
branches:
4-
- main
5-
pull_request:
6-
branches:
7-
- main
8-
name: Wiki Sync
3+
push:
4+
branches: [main]
5+
paths:
6+
- '**'
7+
- .github/workflows/copy-readme-to-wiki.yml
8+
concurrency:
9+
group: publish-wiki
10+
cancel-in-progress: true
11+
permissions:
12+
contents: write
913
jobs:
10-
update-wiki:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/checkout@v2
14-
- name: Copy README to Wiki
15-
run: |
16-
mkdir -p wiki
17-
cp README.md wiki/
18-
- name: Configure Git Safe Directory
19-
run: git config --global --add safe.directory /wiki
20-
- name: Sync Wiki
21-
uses: joeizzard/action-wiki-sync@master
22-
with:
23-
username: LinkStackOrg
24-
access_token: ${{ secrets.GH_TOKEN }}
25-
wiki_folder: wiki
26-
commit_username: 'JulianPrieber'
27-
commit_email: '[email protected]'
28-
commit_message: 'action: wiki sync'
14+
publish-wiki:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
- uses: Andrew-Chen-Wang/github-wiki-action@v4

0 commit comments

Comments
 (0)