diff --git a/.github/workflows/desktop-dev-release.yml b/.github/workflows/desktop-dev-release.yml index affe888f..3360b20b 100644 --- a/.github/workflows/desktop-dev-release.yml +++ b/.github/workflows/desktop-dev-release.yml @@ -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"