Skip to content

Commit

Permalink
Update AutomationPipeline.yml
Browse files Browse the repository at this point in the history
idk trying
  • Loading branch information
aerryasmani authored Feb 19, 2024
1 parent 83ca2e5 commit 44f6299
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/AutomationPipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ jobs:
else
echo "Site is up with HTTP status code $response"
content=$(curl -s https://phptravels.net)
if ! echo "$content" | grep -q "Expected Content"; then
if echo "$content" | grep -q "Your Trip Starts Here! Let us help you plan your next journey — the one that will leave a lifetime of memories"; then
echo "Expected content found on the page."
else
echo "::error::Expected content not found on the page."
exit 1
fi
Expand Down

0 comments on commit 44f6299

Please sign in to comment.