Skip to content

Commit a96afbb

Browse files
committed
ci: assigner: merge maintainer check into assigner workflow
Merge two workflows into one for code sharing an efficiency. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
1 parent 86a46c4 commit a96afbb

File tree

2 files changed

+11
-44
lines changed

2 files changed

+11
-44
lines changed

.github/workflows/assigner.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,13 @@ jobs:
3838
with:
3939
python-version: 3.12
4040

41-
- name: Fetch west.yml from pull request
41+
- name: Fetch west.yml/Maintainer.yml from pull request
4242
if: >
4343
github.event_name == 'pull_request_target'
4444
run: |
4545
git fetch origin pull/${{ github.event.pull_request.number }}/merge
4646
git show FETCH_HEAD:west.yml > pr_west.yml
47+
git show FETCH_HEAD:MAINTAINERS.yml > pr_MAINTAINERS.yml
4748
4849
- name: west setup
4950
if: >
@@ -72,3 +73,12 @@ jobs:
7273
exit 1
7374
fi
7475
python3 scripts/set_assignees.py $FLAGS
76+
77+
- name: Check maintainer file changes
78+
if: >
79+
github.event_name == 'pull_request_target'
80+
env:
81+
GITHUB_TOKEN: ${{ secrets.ZB_PR_ASSIGNER_GITHUB_TOKEN }}
82+
run: |
83+
python ./scripts/ci/check_maintainer_changes.py \
84+
--repo zephyrproject-rtos/zephyr MAINTAINERS.yml pr_MAINTAINERS.yml

.github/workflows/maintainer_check.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)