moodlehq / moodle-plugin-release

Template for GitHub Actions YAML file allowing to automatically release tagged version in the Moodle Plugins directory
GNU General Public License v3.0
13 stars 4 forks source link

Automatically detect the plugin name #11

Open lmscloud-io opened 2 months ago

lmscloud-io commented 2 months ago

We could use something like this instead of asking maintainers to specify the PLUGIN variable:

PLUGIN=$(grep 'plugin->component' ${GITHUB_WORKSPACE}/version.php | sed -E s"/(\\\$plugin->component|=|'|\"|;| )//g")