Skip to content

Commit

Permalink
test new message
Browse files Browse the repository at this point in the history
  • Loading branch information
horacioh committed Dec 13, 2024
1 parent 05e73c5 commit b05c96d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/desktop-dev-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,17 +207,17 @@ jobs:
find artifacts -type f -ls
# Get the GitHub Action Run URL base
BASE_URL="https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
BASE_URL="https://seedappdev.s3.eu-west-2.amazonaws.com/dev/latest"
# List all artifacts and construct URLs
MESSAGE="Artifacts Uploaded:\n\n"
MESSAGE="Artifacts Uploaded:"
for file in $(find artifacts -type f); do
FILE_NAME=$(basename "$file")
ARTIFACT_URL="${BASE_URL}/artifacts/${FILE_NAME}"
MESSAGE="${MESSAGE}\n\n- ${ARTIFACT_URL}"
ARTIFACT_URL="${BASE_URL}/${FILE_NAME}"
MESSAGE="${MESSAGE}\n - ${ARTIFACT_URL}"
done
# Send the message to Discord
echo "Sending Discord Notification..."
PAYLOAD=$(jq -n --arg content "$MESSAGE" '{content: $content}')
PAYLOAD=$(printf '{"content": "%s"}' "$MESSAGE")
curl -X POST -H "Content-Type: application/json" -d "$PAYLOAD" "$DISCORD_WEBHOOK_URL"

0 comments on commit b05c96d

Please sign in to comment.