Skip to content

Commit

Permalink
fix: readable actions log
Browse files Browse the repository at this point in the history
  • Loading branch information
adeherysh committed Jan 23, 2025
1 parent d48fd9e commit 3e5284f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 4 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,12 @@ runs:
if [ -z "$CUSTOM_DOMAIN_URL" ]; then
echo "pages-url=$PAGES_URL" >> $GITHUB_OUTPUT
echo "deployment-url=$CUSTOM_DOMAIN_URL" >> $GITHUB_OUTPUT
echo "Your deployment has been successful and can be accessed at $PAGES_URL"
echo "Your deployment has been successful"
echo "and can be accessed at $PAGES_URL"
echo "or you can also access it at $CUSTOM_DOMAIN_URL"
else
echo "pages-url=$PAGES_URL" >> $GITHUB_OUTPUT
echo "deployment-url=$PAGES_URL" >> $GITHUB_OUTPUT
echo "Your deployment has been successful and can be accessed at $PAGES_URL"
echo "Your deployment has been successful"
echo "and can be accessed at $PAGES_URL"
fi
7 changes: 5 additions & 2 deletions tools/setup-custom-domains/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ runs:
dns_record_id=$(echo $getdns | jq -r '.result[0].id')
if [ -n "$dns_record_id" ]; then
echo "Cloudflare dns record is found"
echo "Cloudflare dns record for $domain already exists"
else
echo "Cloudflare dns record is not found"
echo "Cloudflare dns record for $domain is not found"
echo "Setup dns record for $domain ..."
postdns=$(curl -s -X POST "https://api.cloudflare.com/client/v4/zones/${zone_id}/dns_records" \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
Expand Down Expand Up @@ -141,6 +141,9 @@ runs:
fi
fi
fi
echo "=============================================================================="
echo ""
done
rm public_suffix_list.dat
fi

0 comments on commit 3e5284f

Please sign in to comment.