Skip to content

Commit ed8a083

Browse files
committed
fix: workflow
1 parent d2c764d commit ed8a083

1 file changed

Lines changed: 16 additions & 5 deletions

File tree

.github/actions/dotns/action.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,20 @@ runs:
9393
run: |
9494
echo "::add-mask::$DOTNS_MNEMONIC"
9595
96+
# Names of 5 characters or fewer classify as Reserved and must be
97+
# registered through the governance (registerReserved) path, which is
98+
# gated on the caller being whitelisted (the "Whitelist deployer" step
99+
# authorises exactly this). Longer names use regular registration.
100+
REGISTER_ARGS=(register domain --name "$BASENAME")
101+
if [[ "${#BASENAME}" -le 5 ]]; then
102+
REGISTER_ARGS+=(--governance)
103+
echo "::notice::${BASENAME}.dot is a reserved name; using governance registration."
104+
fi
105+
96106
for ATTEMPT in $(seq 1 "$MAX_RETRIES"); do
97107
echo "Register base attempt $ATTEMPT/$MAX_RETRIES"
98108
99-
if dotns register domain --name "$BASENAME" 2>&1; then
109+
if dotns "${REGISTER_ARGS[@]}" 2>&1; then
100110
echo "::notice::Base domain ${BASENAME}.dot registered"
101111
exit 0
102112
fi
@@ -107,12 +117,13 @@ runs:
107117
108118
echo "::error::Base domain registration failed after $MAX_RETRIES attempts."
109119
echo ""
110-
echo "This usually means the account does not have the required"
111-
echo "Proof-of-Personhood status for this name."
120+
echo "For reserved names (5 characters or fewer) the deployer must be"
121+
echo "whitelisted for governance registration. For longer names the"
122+
echo "account must hold the required Proof-of-Personhood status."
112123
echo ""
113124
echo "To fix this:"
114-
echo " 1. Check your POP status: dotns pop status"
115-
echo " 2. Complete personhood verification outside DotNS if needed."
125+
echo " 1. Confirm the deployer is whitelisted: dotns account is-whitelisted <address>"
126+
echo " 2. Check PoP status (longer names): dotns pop status"
116127
echo " 3. Then re-run this workflow."
117128
echo ""
118129
echo "You can also register manually at https://dotns.paseo.li"

0 commit comments

Comments
 (0)