Skip to content

Commit c827ed2

Browse files
committed
Try this
1 parent c098f31 commit c827ed2

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/publish-wiki.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,18 @@ jobs:
3636
- name: Checkout code
3737
uses: actions/checkout@v4
3838

39+
- name: Copy wiki files to temporary location
40+
shell: bash
41+
run: cp -v -a wiki _wiki
42+
43+
- name: Preface markdown files with warning not to edit in place
44+
# yamllint disable rule:line-length
45+
run: >
46+
find ./_wiki/ -name "*.md*"
47+
-exec sed -i
48+
'1i\<!--\nDO NOT EDIT THIS FILE IN THE WIKI.\nThis wiki is updated from the https://github.com/PHPCSStandards/PHP_CodeSniffer-documentation repo.\nSubmit a PR to that repo updating the file in the `/wiki/` subdirectory instead.\n-->\n\n' {} \;
49+
# yamllint enable rule:line-length
50+
3951
- name: Check GitHub Git Operations status
4052
uses: crazy-max/ghaction-github-status@v4
4153
with:
@@ -47,7 +59,7 @@ jobs:
4759
COMMIT_MSG: ${{ github.event.head_commit.message }}
4860
with:
4961
strategy: 'clone'
50-
path: 'wiki/'
62+
path: '_wiki/'
5163
commit-message: ${{ env.COMMIT_MSG }}
5264
# repository: PHPCSStandards/PHP_CodeSniffer
5365
# token: ${{ secrets.PHPCS_PUSH_TO_WIKI_TOKEN }}

0 commit comments

Comments
 (0)