Skip to content

Conversation

@ChrisTracy
Copy link

I've been really impressed with this server implementation, and I was looking for a way to contribute. I've developed a tool that automates the process of checking for updates on the https://papermc.io/downloads website.
This tool utilizes GitHub Actions to scrape the website for updates, and upon finding any, it automatically updates the Docker files and the README in the repository.

Two GitHub "secrets" need to be configured: GIT_USER_EMAIL and GIT_USER_NAME.

This implementation does rely on web scraping, and currently, the method to identify the version hinges on a class name that is not ideally named. Given the nature of web scraping, it's possible that changes to the PaperMC download page could break this functionality.
It might be necessary to periodically check the action logs to ensure it continues to function properly (if the website's structure changes). I did my best to validate that the version is correctly formatted before the files are ever touched.

I've encountered some challenges with scheduling jobs in GitHub Actions in the past, but I've found that triggering the action via a simple API call is a reliable workaround. I hope this contribution proves to be helpful. Thank you for building and maintaining this project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant