forked from research11111/gh-actions-issues-autolabel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
34 lines (32 loc) · 941 Bytes
/
action.yml
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
name: "Issue Classifier"
description: "Classify issues by label with Hugging Face Inference Endpoint"
author: "August-murr"
inputs:
token:
description: "The GITHUB_TOKEN secret"
required: false
default: ${{ github.token }}
hf-api-key:
description: "The HF API key secret"
required: true
model-name:
description: "The model name to use, eg meta-llama/Llama-3.3-70B-Instruct"
required: false
default: "meta-llama/Llama-3.3-70B-Instruct"
runs:
using: "composite"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
shell: "bash"
run: pip install huggingface_hub PyGithub
- name: Create calendar event
shell: "bash"
env:
GITHUB_TOKEN: ${{ inputs.token }}
HF_API_KEY: ${{ inputs.hf-api-key }}
MODEL_NAME: ${{ inputs.model-name }}
run: python "$GITHUB_ACTION_PATH/label.py"