2022-07-01 20:51:01 +08:00
|
|
|
name: Backport Issue Check
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request_target:
|
2024-08-27 19:28:36 +08:00
|
|
|
types:
|
|
|
|
- edited
|
|
|
|
- opened
|
|
|
|
- reopened
|
|
|
|
- synchronize
|
2022-07-01 20:51:01 +08:00
|
|
|
branches:
|
|
|
|
- v*-branch
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
backport:
|
|
|
|
name: Backport Issue Check
|
2024-08-27 19:28:36 +08:00
|
|
|
concurrency:
|
|
|
|
group: backport-issue-check-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
2023-03-22 01:46:21 +08:00
|
|
|
runs-on: ubuntu-22.04
|
2022-10-26 22:01:06 +08:00
|
|
|
if: github.repository == 'zephyrproject-rtos/zephyr'
|
2022-07-01 20:51:01 +08:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Check out source code
|
2024-01-27 12:26:39 +08:00
|
|
|
uses: actions/checkout@v4
|
2022-07-01 20:51:01 +08:00
|
|
|
|
|
|
|
- name: Install Python dependencies
|
|
|
|
run: |
|
|
|
|
sudo pip3 install -U setuptools wheel pip
|
|
|
|
pip3 install -U pygithub
|
|
|
|
|
|
|
|
- name: Run backport issue checker
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.ZB_GITHUB_TOKEN }}
|
|
|
|
run: |
|
|
|
|
./scripts/release/list_backports.py \
|
|
|
|
-o ${{ github.event.repository.owner.login }} \
|
|
|
|
-r ${{ github.event.repository.name }} \
|
|
|
|
-b ${{ github.event.pull_request.base.ref }} \
|
|
|
|
-p ${{ github.event.pull_request.number }}
|