Is there possible to download the apk automatically when ever the build comes in app center Appium selenium script and to run in Gitlab CICD pipeline?

I want to downlaod the apk automatically when ever the build comes from app center using selenium Java Appium script and to run in Gitlab CICD pipeline.

Is there any solution?