forked from community/community
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.01 KB
/
feature-topic-area-labeler.yml
File metadata and controls
42 lines (37 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Feature/Topic Area Labeler (Reusable)
on:
workflow_call:
inputs:
discussion_body:
required: true
type: string
discussion_node_id:
required: true
type: string
owner:
required: true
type: string
repo:
required: true
type: string
jobs:
label-feature-topic-area:
runs-on: ubuntu-latest
permissions:
discussions: write
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Label discussion by feature/topic area
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OWNER: ${{ inputs.owner }}
REPO: ${{ inputs.repo }}
DISCUSSION_BODY: ${{ inputs.discussion_body }}
DISCUSSION_NODE_ID: ${{ inputs.discussion_node_id }}
run: python .github/workflows/scripts/feature_topic_area_labeler.py