How to receive an OTP inside a GitHub Actions workflow

Post the address to the form, then curl the inbox endpoint from a later step. No secret or mailbox runner needed.

Run it

curl -s https://api.model.tools/api/v1/inbox/gh-run-$GITHUB_RUN_ID/latest_otp

Response

{"status":"ok","otp":"771205","all_otps":["771205"]}