-
Notifications
You must be signed in to change notification settings - Fork 214
44 lines (40 loc) · 1.48 KB
/
issue_bot.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
35
36
37
38
39
40
41
42
43
44
---
name: 🆘 Help wanted
on:
issues:
types: [opened]
permissions:
issues: write
jobs:
run:
if: ${{ contains(github.event.issue.labels.*.name, 'bug_beta') }}
runs-on: ubuntu-latest
name: 🚀 Run
outputs:
raw_body: ${{ steps.start.outputs.raw_body }}
steps:
- name: 🚀 Start
shell: bash
id: start
env:
BODY: ${{ github.event.issue.body }}
run: |
echo "Running the workflow"
echo "Body: $BODY"
body_formatted=$(echo $BODY | tr -d '\n')
echo "Formatted body: $body_formatted"
echo "raw_body=$body_formatted" >> $GITHUB_OUTPUT
execute:
needs: run
uses: IAExperiments/WikiChatbot/.github/workflows/reusable-workflow.yml@main
secrets:
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
with:
query: ${{ needs.run.outputs.raw_body }}
AZURE_OPENAI_API_ENDPOINT: ${{ vars.AZURE_OPENAI_API_ENDPOINT }}
AZURE_OPENAI_API_INSTANCE_NAME: ${{ vars.AZURE_OPENAI_API_INSTANCE_NAME }}
AZURE_OPENAI_API_VERSION: ${{ vars.AZURE_OPENAI_API_VERSION }}
AZURE_OPENAI_API_EMBEDDINGS_DEPLOYMENT_NAME: ${{ vars.AZURE_OPENAI_API_EMBEDDINGS_DEPLOYMENT_NAME }}
AZURE_OPENAI_API_DEPLOYMENT_NAME: ${{ vars.AZURE_OPENAI_API_DEPLOYMENT_NAME }}
AZURE_OPENAI_API_VISION_DEPLOYMENT_NAME: ${{ vars.AZURE_OPENAI_API_VISION_DEPLOYMENT_NAME }}
BASEIMAGEURL: ${{ vars.BASEIMAGEURL }}