Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/prod-master-version-verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
if [ "$integration" = "$skip_integration" ]; then
echo "Skipping $integration"
skip=1
skipped_integrations="$skipped_integrations$integration\n"
skipped_integrations="$skipped_integrations> $integration\n"
break
fi
done
Expand All @@ -46,26 +46,26 @@ jobs:
if [ $exists -eq 0 ]; then
echo "Integration $integration is not up to date. Please deploy the latest version of your integration."
should_fail=1
outdated_integrations="$outdated_integrations$integration\n"
outdated_integrations="$outdated_integrations> $integration\n"
fi
done

if [ $should_fail -eq 1 ]; then
message="\n\nThe following integrations are out of date:\n$outdated_integrations"
message="$message\nThe following integrations were skipped:\n$skipped_integrations"
message="$message\nPlease run the deployment for the out-of-date integrations."
message="$message\nPlease run the deployment for the out-of-date integrations in ${{ github.server_url }}/${{ github.repository }}"

echo "\n\nSending curl request to Slack webhook"
echo -e "\n\nSending curl request to Slack webhook"
echo "Response:"
curl -X POST ${{ secrets.SLACK_WORKFLOW_SEAGULL_WEBHOOK_URL }} \
-H "Content-Type: application/json" \
-d '{
"key": "prod-master-version-verification",
"text": "'"$message"'"
}'
echo "\nCurl request sent"
echo -e "\nCurl request sent"

echo "$message"
echo -e "$message"

exit 1
fi
Loading