Skip to content

Commit 31cefa6

Browse files
authored
ci: update update-maintainers-trigger.yaml workflow from global .github repo (#700)
1 parent bcb530c commit 31cefa6

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This action is centrally managed in https://github.com/asyncapi/.github/
2+
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in above mentioned repo
3+
4+
name: Trigger MAINTAINERS.yaml file update
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
paths:
10+
# Check all valid CODEOWNERS locations:
11+
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#codeowners-file-location
12+
- 'CODEOWNERS'
13+
- '.github/CODEOWNERS'
14+
- '.docs/CODEOWNERS'
15+
16+
jobs:
17+
trigger-maintainers-update:
18+
name: Trigger updating MAINTAINERS.yaml because of CODEOWNERS change
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Repository Dispatch
23+
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # https://github.com/peter-evans/repository-dispatch/releases/tag/v3.0.0
24+
with:
25+
# The PAT with the 'public_repo' scope is required
26+
token: ${{ secrets.GH_TOKEN }}
27+
repository: ${{ github.repository_owner }}/community
28+
event-type: trigger-maintainers-update

0 commit comments

Comments
 (0)