Skip to content

Commit

Permalink
add webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Jan 5, 2025
1 parent 447069a commit 8bb94cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
database-type: "postgresql"
report-name: "agixt-postgres-tests"
needs: build
secrets:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
test-agixt-sqlite:
uses: ./.github/workflows/tests.yml
with:
Expand All @@ -44,4 +46,6 @@ jobs:
port: "7437"
database-type: "sqlite"
report-name: "agixt-sqlite-tests"
needs: build
needs: build
secrets:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jobs:
run: |
echo "Executing notebook with error tolerance..."
python3 -m nbconvert --execute --allow-errors --log-level INFO --to pdf ${{ env.notebook-file }}
- name: Send Video to Discord
- name: Send Report to Discord
if: always()
run: |
# Set message based on stored test outcome
Expand Down Expand Up @@ -147,7 +147,7 @@ jobs:
if [ ! -f $FILE_TO_SEND ]; then
FILE_TO_SEND="${{ env.artifact-file }}"
fi
echo "Sending Video: $FILE_TO_SEND"
echo "Sending Report: $FILE_TO_SEND"
curl -H "Content-Type:multipart/form-data" \
-F "file=@$FILE_TO_SEND" \
-F "content=$MESSAGE" \
Expand Down

0 comments on commit 8bb94cb

Please sign in to comment.