Skip to content

Commit

Permalink
Update issue_bot.yml (#355)
Browse files Browse the repository at this point in the history
Hardened input
  • Loading branch information
jmanuelcorral authored May 30, 2024
1 parent 52027ac commit 3c068b6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/issue_bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ jobs:
- name: 🚀 Start
shell: bash
id: start
env:
BODY: ${{ github.event.issue.body }}
run: |
echo "Running the workflow"
echo "Body: ${{ github.event.issue.body }}"
body_formatted=$(echo "${{ github.event.issue.body }}" | tr -d '\n')
echo "Body: $BODY"
body_formatted=$(echo $BODY | tr -d '\n')
echo "Formatted body: $body_formatted"
echo "raw_body=$body_formatted" >> $GITHUB_OUTPUT
Expand All @@ -37,4 +39,4 @@ jobs:
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 }}
BASEIMAGEURL: ${{ vars.BASEIMAGEURL }}
BASEIMAGEURL: ${{ vars.BASEIMAGEURL }}

0 comments on commit 3c068b6

Please sign in to comment.