MerginMaps / qgis-plugin

QGIS plugin for managing Mergin Maps projects
GNU General Public License v3.0
36 stars 13 forks source link

Enable packaging and test workflows to be triggered mannually with custom inputs #621

Closed ValentinBuira closed 1 month ago

ValentinBuira commented 1 month ago

This PR enable a workflow to be triggered manually with custom inputs using workflow_dispatch event. The packages.yml and run-test.yml workflow are currently supported

This PR reuse the same workflow used when a commit is pushed and should remain compatible

Currently we support the following argument(inputs)

To note, you can't trigger the workflow from the github web interface since it's not yet on the default branch, to test from the cli interface, use the following command e.g:

For packaging:

gh workflow run "Build Mergin Plugin Packages" --ref workflow-dispatch -f PYTHON_API_CLIENT_VER="master"

For test:

gh workflow run "Run Mergin Plugin Tests" --ref workflow-dispatch -f PYTHON_API_CLIENT_VER="project-history"
tomasMizera commented 1 month ago

Thanks for the adjustments!