This repository contains a Python script that performs a dummy commit on a GitHub repository every 12 hours. The script is Dockerized for easy deployment.
Before you begin, ensure you have the following installed:
- Docker: Get Docker
-
Clone this repository:
git clone https://github.com/your-username/github-dummy-commit-dockerized.git cd github-dummy-commit-dockerized
-
Create a
.env
file in the project root and populate it with your GitHub credentials and repository information:GITHUB_USERNAME=your_username GITHUB_TOKEN=your_personal_access_token REPO_OWNER=your_repo_owner REPO_NAME=your_repo_name FILE_PATH=path/to/your/file.txt
Replace the values with your actual GitHub credentials and repository information.
-
Build the Docker image:
docker build -t github-dummy-commit .
-
Run the Docker container:
docker run -d --env-file .env github-dummy-commit
This will start the script inside a Docker container, and it will perform a dummy commit every 12 hours.
If you want to customize the script behavior or schedule, you can modify the dummy_commit.py
file.
Feel free to contribute to this project by submitting issues or pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.
Make sure to replace placeholders such as `your-username`, `your_repo_owner`, and `your_repo_name` with your actual GitHub username and repository information.