You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warn reviewers to verify preview URL before clicking
Adds a callout in the run summary and PR comment asking the developer
to confirm the link matches the workflow run and points to
trycloudflare.com before opening it.
Copy file name to clipboardExpand all lines: .github/workflows/preview-docs.yml
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -140,11 +140,13 @@ jobs:
140
140
echo "| Lifetime | $DURATION_MINUTES min |"
141
141
echo ""
142
142
echo "The link goes dead when this job ends."
143
+
echo ""
144
+
echo "> :warning: Please double-check the URL before clicking. The preview runs on a one-time public tunnel — confirm the link in this summary matches the one in any PR comment, and make sure it points to \`trycloudflare.com\`."
143
145
} >> "$GITHUB_STEP_SUMMARY"
144
146
145
147
if [ -n "$PR_NUMBER" ]; then
146
-
BODY=$(printf '**Docs preview:** %s\n\nProduct: `%s` · Ref: `%s` · Live for %s min.\n\n_Triggered by @%s via the Preview Docs workflow._' \
BODY=$(printf '**Docs preview:** %s\n\nProduct: `%s` · Ref: `%s` · Live for %s min.\n\n> :warning: Please double-check the URL before clicking. Confirm it matches the link in the [workflow run summary](%s/actions/runs/%s) and that it points to `trycloudflare.com`.\n\n_Triggered by @%s via the Preview Docs workflow._' \
0 commit comments