This project is designed to automatically log into the LinuxDo website and randomly read several posts. It utilizes Python in conjunction with the Playwright automation library to simulate browser login and post browsing activities.
- Automatically logs into LinuxDo.
- Completes daily check-ins.
- Automatically browse posts.
- Runs automatically in GitHub Actions.
This section solely focuses on how to utilize GitHub Actions. Prior to proceeding, you need to fork this project first.
Before using this automation script, you need to configure two environment variables USERNAME
and PASSWORD
in your GitHub repository, which will be used to log into LinuxDo. Follow these steps to set up:
- Log into GitHub and navigate to your repository.
- Click on the
Settings
tab of the repository. - Find the
Secrets
section on the left menu and click onActions
. - Click the
New repository secret
button. - Add both
USERNAME
andPASSWORD
:- In the
Name
field, enterUSERNAME
and in theValue
field, enter your LinuxDo username or email. - Repeat the process, this time entering
PASSWORD
as theName
and the corresponding password as theValue
.
- In the
The GitHub Actions configuration in this project automatically runs the check-in script at midnight UTC every day. You do not need to take any action to initiate this automated task. The workflow file is located in the .github/workflows
directory and is named daily-check-in.yml
.
If you need to manually trigger this workflow, you can do so by following these steps:
- Go to the
Actions
tab of your GitHub repository. - Select the workflow you want to run.
- Click the
Run workflow
button, choose the branch, and then clickRun workflow
to initiate the workflow.