This repository contains a Selenium script that automates the process of logging into MIU's job search portal and submitting daily job application reports. The script runs daily using GitHub Actions and Docker.
- Automates login to MIU's job search portal.
- Handles Microsoft authentication.
- Automatically fills and submits job application reports.
- Uses Docker for consistent execution.
- Runs daily using GitHub Actions.
- Captures screenshots and logs for debugging.
- Docker (for local testing)
- GitHub account (for automated runs)
git clone https://github.com/mucahitkayadan/job_search_report_automation.git
cd job_search_report_automation
Create a file named requirements.txt
and add the following lines:
selenium~=4.21.0
webdriver-manager~=4.0.1
Create a file named script.py
and add your Selenium automation script to it. This script should use environment variables for credentials and automate the necessary steps on the website.
- Navigate to your GitHub repository.
- Go to Settings > Secrets and variables > Actions.
- Click New repository secret and add the following secrets:
MIU_EMAIL
: Your email address.MIU_PASSWORD
: Your password.
NOTE: If you are trying to run the code on your desktop, add your credentials to your local environment, or just basically set that values as text in the code. On Powershell:
setx MIU_EMAIL put_your_miu_email
setx MIU_PASSWORD put_your_miu_password
Copy the workflow file from the repository to your repository.
git add .
git commit -m "Add Selenium script and GitHub Actions workflow"
git push origin main
- Go to the Actions tab of your GitHub repository.
- Check the status of the workflow runs.
- Review logs to ensure everything is working correctly.
The script automatically runs:
- On every push to main branch
- On pull requests to main branch
- Daily at midnight (UTC)
The workflow:
- Builds a Docker image
- Pushes it to GitHub Container Registry
- Runs the container with credentials
- Captures logs and screenshots
- Uploads artifacts for debugging
- Check the Actions tab in GitHub for workflow runs
- Download artifacts from failed runs to see screenshots
- Review logs for detailed execution information
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
- Pull the Docker image:
docker pull ghcr.io/mucahitkayadan/job_search_report_automation/selenium-script:latest
- Run the Docker image:
docker run -e MIU_EMAIL=your-miu-email-address -e MIU_PASSWORD=your-miu-stu-password -v ${PWD}/logs:/app/logs -v ${PWD}/screenshots:/app/screenshots ghcr.io/mucahitkayadan/selenium-script:latest
Note: Both Miu Microsoft and STU passwords are the same.
- Connect to MongoDB and get the daily application number instead of randomly generated numbers.
- Find my resume generator:
https://github.com/mucahitkayadan/Resume-Builder-TeX
- Find my resume generator:
The user needs to be able to give their Resume Builder Tex (RBT) username and it should be retrieved automatically.
- Now Microsoft and STU passwords are being used same, a different secret variable may be created for the ones who does not use them with the same password.
MIT License. See LICENSE.md for details.