Hi,
it's a Dynamics 365 CRM, and I'm implementing the CI CD strategy on devops to automatically export a power plateform solution from dev environnement, then extract it and commit to git repository after that deploying the zip solution to the Build environnement.
in my release pipeline I need to save the build artifact in a folder in my git repos after importing it to the build env, I tried to do this by using the copy file task and a script task to commit, but I find the error that in release pipeline I don't find the repo
this is the script :
git config --global user.email "xxx@mail.com"
git config --global user.name "Admin"
git checkout main
git add --all
git commit -m "Add docs.zip file"
git push -u origin main