Skip to content

Commit f5e7943

Browse files
authored
Merge pull request #1097 from PHPCSStandards/feature/1094-ghactions-trigger-publish-xsd-files-via-stable-url
GH Actions: auto-trigger update of schema website
2 parents 7ee9c2b + e100547 commit f5e7943

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

.github/workflows/verify-release.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,25 @@ concurrency:
2121
cancel-in-progress: true
2222

2323
jobs:
24+
###############################################################
25+
# Trigger an update of the schema.phpcodesniffer.com website. #
26+
###############################################################
27+
trigger-schema-site-update:
28+
runs-on: ubuntu-latest
29+
30+
# Only run this workflow in the context of this repo.
31+
if: github.repository_owner == 'PHPCSStandards'
32+
33+
name: "Trigger update of schema website"
34+
35+
steps:
36+
- name: Trigger schema website update
37+
uses: peter-evans/repository-dispatch@v3
38+
with:
39+
token: ${{ secrets.WORKFLOW_DISPATCH_PAT }}
40+
repository: PHPCSStandards/schema.phpcodesniffer.com
41+
event-type: phpcs-release
42+
2443
##################################################################################
2544
# Verify the release is available in all the right places and works as expected. #
2645
##################################################################################
@@ -129,9 +148,9 @@ jobs:
129148
if: ${{ steps.asset_version.outputs.VERSION != steps.version.outputs.TAG }}
130149
run: exit 1
131150

132-
# #########################################
133-
# Verify install via PHIVE.
134-
# #########################################
151+
#############################
152+
# Verify install via PHIVE. #
153+
#############################
135154
verify-phive:
136155
runs-on: ubuntu-latest
137156

0 commit comments

Comments
 (0)