Skip to content

Commit 2ea0386

Browse files
authored
Merge pull request ARMmbed#14691 from adbridge/master
Add GitHub action for issue triaging script
2 parents cb4dd19 + 1684b9c commit 2ea0386

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/main.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
on:
2+
issues:
3+
types: [ opened, reopened ]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout repo
11+
uses: actions/checkout@v2
12+
13+
- name: Install Python environment
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: 3.8
17+
18+
- name: Checkout mbed-os-scripts repo (This repo is currently private)
19+
uses: actions/checkout@v2
20+
with:
21+
repository: ARMmbed/mbed-os-ci-scripts
22+
token: ${{ secrets.ISSUE_TRIAGING_PERMS }}
23+
path: scripts
24+
ref: triage_test
25+
26+
- name: Run the script
27+
run: |
28+
python -m pip install pygithub
29+
python ./scripts/issue_triaging/__init__.py -i ${{github.event.issue.number}} -r ${{ github.event.repository.name }} -t ${{ secrets.ISSUE_TRIAGING_PERMS }}

0 commit comments

Comments
 (0)