This pull request introduces a new GitHub Actions workflow in the .github/workflows/version-check.yml file. This workflow is designed to automatically check for updates to the software and create a new release if a newer version is available.
Fixes #16
Here are the key changes:
A new workflow is scheduled to run every two hours and can also be manually triggered.
The version-check job checks out the repository, retrieves the remote version from a specified URL, retrieves the current release version from the GitHub API, and compares the two versions. If the remote version is newer, it sets an output variable update_required to true.
The new-release job runs if update_required is true, retrieves release notes from a specified URL, and uses the softprops/action-gh-release@v2 action to create a new release with the remote version.
This pull request introduces a new GitHub Actions workflow in the
.github/workflows/version-check.yml
file. This workflow is designed to automatically check for updates to the software and create a new release if a newer version is available. Fixes #16Here are the key changes:
version-check
job checks out the repository, retrieves the remote version from a specified URL, retrieves the current release version from the GitHub API, and compares the two versions. If the remote version is newer, it sets an output variableupdate_required
totrue
.new-release
job runs ifupdate_required
istrue
, retrieves release notes from a specified URL, and uses thesoftprops/action-gh-release@v2
action to create a new release with the remote version.