-
-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sfdx sgd:source:delta not producing a package.xml with changes #275
Comments
Hi @Deelane ! Thanks for raising this issue, and sorry for the inconvenience. There is something I do not understand here, it seems the command The only things I can see that is different is the Another thing I noticed is that you are not using the |
Hi scolladon, I actually omitted the entirety of the code, but I am indeed using the checkout action. Also, I should have specified that I have ran both commands both locally and remote. That is, I have tried --to pr and --from uat, as well as --to dev and --from uat both locally and on actions. I have actually ran more than just that locally/on actions, including HEAD and HEAD^ and also hardcoding dev and uat as --to and --from. Every time I am able to successfully create a package containing the correct diffs locally but unsuccessfully remotely. Here is the whole file for reference:
|
Ok thanks, that is helpful. I can still see git operation in the "Install SFDX & SFDX Git Delta" step: git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
git fetch --all
git checkout -b pr Why it is doing it ? Also the checkout v2 step does not fetch every commit, it should be configured to fetch every commit so the git diff can be done inside the CI |
Those are honestly me just trying to fix the issue. Some people recommended fetching refs to fix the issue I was having and another was achieving success by checking out a new branch. However, I can confirm that changing the fetch depth to 0 did not fix the issue. |
Hi @Deelane ! I tried something on my own and built a CI in our reproduction playground I created a PR to be able to look at it, you can check the PR status and the related github action here |
Adding origin fixed it, thank you! |
Issue verification check :
What is the problem
--- No changes are reflected at all in any of the generated package.xml files after running
sfdx sgd:source:delta
in github actions. Changes were confirmed to exist in the pull request after running git diff (posted at the bottom). Running the commandsfdx sgd:source:delta --to dev --from uat --output .
locally provides the correct package.xml (the code in the workflow wassfdx sgd:source:delta --to ${{ env.HEAD_REF }}--from ${{ env.BASE_REF }} --output .
at first with HEAD_REF being uat and BASE_REF being dev). These should both provide the same result in actions as I have tried them locally and produced the correct delta package.xml. Am I doing something wrong here?What is parameter and their value you used
What is the expected result
What is the actual result
Steps to reproduce
Execution context
**Operating System: Ubuntu 20.04.3 LTS (Ubuntu Latest on github actions)
yarn version: …
node version: …
git version: …
sfdx version: …
sgd plugin version: …
Optional more information
Provide the output of those command line :
$ git diff --name-status --no-renames
The text was updated successfully, but these errors were encountered: