CI: version check: fix running on upstream/master
When running on upstream/master, don't compare HEAD against upstream/master. This is the same commit, so all versions will be the same. Instead compare against HEAD~1.
Example where it failed without this patch: https://gitlab.postmarketos.org/postmarketos/pmaports/-/jobs/222558479
Edited by Administrator