ci: improve abi check logic
Changed logic for abi check to get latest artifact iterating over pagination in api in order to get latest version number. Removed duplicated code and moved into base file and extend all other jobs from this base job
Changed logic for abi check to get latest artifact iterating over pagination in api in order to get latest version number. Removed duplicated code and moved into base file and extend all other jobs from this base job