This is a GitHub Action for automatic daily check-in to 1min.ai, supporting email/password login and TOTP two-factor authentication.
- 🤖 Automatic daily check-in
- 🔐 TOTP two-factor authentication support
- 📊 Display account balance information
- ⏰ Customizable execution time
- 📝 Automatic execution log saving
Click the "Use this template" button to create your own project, or fork this project to your GitHub account.
In your GitHub project, go to Settings > Secrets and variables > Actions, and add the following secrets:
Required Settings:
EMAIL: Your 1min.ai account emailPASSWORD: Your 1min.ai account password
Optional Settings:
TOTP_SECRET: Your TOTP secret key (only needed if two-factor authentication is enabled)
Make sure GitHub Actions is enabled for your project. The first execution will start automatically.
Edit the cron expression in the .github/workflows/daily-checkin.yml file:
schedule:
- cron: '5 8 * * *' # Daily at UTC 8:05 (Taipei time 16:05)Common time settings:
0 0 * * *- Daily at UTC 0:00 (Taipei time 8:00)0 8 * * *- Daily at UTC 8:00 (Taipei time 16:00)0 12 * * *- Daily at UTC 12:00 (Taipei time 20:00)
You can also manually trigger execution on the GitHub Actions page:
- Go to your project > Actions page
- Select the "1min.ai Daily Auto Checkin" workflow
- Click the "Run workflow" button
If you want to test the script locally:
# Install dependencies
npm install
# Set environment variables
export EMAIL="[email protected]"
export PASSWORD="your-password"
export TOTP_SECRET="your-totp-secret" # Optional
# Run test
npm start├── .github/workflows/
│ └── daily-checkin.yml # GitHub Action workflow
├── src/
│ └── index.js # Main check-in logic
├── package.json # Project configuration file
├── LICENSE # MIT License
└── README.md # Documentation
- Ensure your GitHub account has sufficient Actions usage quota
- Regularly check execution results
- If consecutive failures occur, check if account credentials are correct
- TOTP secret key is only needed when two-factor authentication is enabled
- All sensitive information is stored in GitHub Secrets
- Complete account/password information is not displayed in logs
- Uses official GitHub Actions to ensure security
-
Login Failed 401 Error
- Check if EMAIL and PASSWORD are correct
- Confirm the account is not locked
-
TOTP Verification Failed
- Check if TOTP_SECRET is correct
- Ensure time synchronization is correct
-
GitHub Action Not Executing
- Check if the cron expression is correct
- Confirm GitHub Actions is enabled
- Go to your project > Actions page
- Click on the recent execution record
- View detailed execution logs
This project is licensed under the MIT License - see the LICENSE file for details.