web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Remove objects from Gi...
Power Apps
Unanswered

Remove objects from GitHub Repo with PowerPlatform Action

(1) ShareShare
ReportReport
Posted on by 254
Hi, 
I'm not sure if this is the right spot for the question. I'm working on some GitHub Actions to automate CI/CD for my current CRM project. 
So there are some solutions containing a model driven app, entities, roles and so on. I have a pipeline in place which
  • exports the current version unmanged
  • extract the unmanged version and stores it in GitHub (Enterprise Server)
  • exports the same version managed and stores it for deployment purposes
When running SolutionPackager locally I can decide if missing objects are to be removed from previous export. Which is typical intention when 
objects get removed from the solution. Now, when running the pipeline this optin seems to be gone. I use unpack action to extract the solution '
file and push the result to git afterwards https://github.com/microsoft/powerplatform-actions/blob/main/unpack-solution/action.yml 
But today I removed something from my solution but after pipeline finished successfully, the object was still present in git. 

Any idea how to overcome this?
 
'Thanks!
I have the same question (0)
  • Verified answer
    SteRe Profile Picture
    254 on at
    Update: I found an option myself. 
    For everybody interested in this, you can do the following
     
    1. Get local copy
    2. Clear export folder
    3. Extract solution to export folder
    4. Add all objects
    5. Commit changes
    6. Push changes
     
    As git does not compare timestamps in here, but content it recognizes all deleted + recreated files as unchanged. So modifications and additions will be added to your repo and (locally) removed files will be removed from repo. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard