Skip to content

Commit 371bd9f

Browse files
authored
Merge pull request #1163 from PHPCSStandards/feature/ghactions-auto-trigger-wiki-update-on-release
GH Actions/verify release: auto-trigger Wiki update on new release
2 parents 83312f6 + 71794c1 commit 371bd9f

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/verify-release.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,25 @@ jobs:
4040
repository: PHPCSStandards/schema.phpcodesniffer.com
4141
event-type: phpcs-release
4242

43+
#######################################################
44+
# Trigger an update of the documentation in the Wiki. #
45+
#######################################################
46+
trigger-wiki-update:
47+
runs-on: ubuntu-latest
48+
49+
# Only run this workflow in the context of this repo.
50+
if: github.repository_owner == 'PHPCSStandards'
51+
52+
name: "Trigger update of wiki"
53+
54+
steps:
55+
- name: Trigger wiki update
56+
uses: peter-evans/repository-dispatch@v3
57+
with:
58+
token: ${{ secrets.WORKFLOW_DISPATCH_DOCS_PAT }}
59+
repository: PHPCSStandards/PHP_CodeSniffer-documentation
60+
event-type: phpcs-release
61+
4362
##################################################################################
4463
# Verify the release is available in all the right places and works as expected. #
4564
##################################################################################

0 commit comments

Comments
 (0)