moodlehq / moodle-plugin-ci

Helps running Moodle plugins analysis checks and tests under various CI environments.
https://moodlehq.github.io/moodle-plugin-ci/
GNU General Public License v3.0
47 stars 46 forks source link

Add a latest tag #261

Open ewallah opened 11 months ago

ewallah commented 11 months ago

Downloading the latest version of moodle-plugin-ci.phar should be easy, even without knowing the tag of the latest version.

The phar file works like a charm, locally but also in Github Actions:

wget -q https://github.com/moodlehq/moodle-plugin-ci/releases/download/4.1.8/moodle-plugin-ci.phar -O moodle-plugin-ci
chmod +x moodle-plugin-ci
./moodle-plugin-ci selfupdate

But it would be easier (less maintenance when a new version is released) if the latest tag automatically refers to the latest version:

wget -q https://github.com/moodlehq/moodle-plugin-ci/releases/download/latest/moodle-plugin-ci.phar -O moodle-plugin-ci
chmod +x moodle-plugin-ci
stronk7 commented 11 months ago

Sorry @ewallah , do you mean amend the docs or something like that? So far, the releases/download/latest works out of the box, so I'm not sure to understand what are you proposing.

Thanks for reporting!