alectrona / git4jamfpro

A tool designed for CI/CD pipelines that uploads the most recently changed scripts and extension attributes in source control to a Jamf Pro server(s).
42 stars 16 forks source link

Not pushing changes to server, document empty #8

Open markkenny opened 1 year ago

markkenny commented 1 year ago

Hi, probably more my issue than the tool.

Got it installed in dev and pulled my my scripts and EAs. Tried making changes to one script and when the git4jamfpro Job runs the push errors with

cat: '<?xml version="1.0" encoding="UTF-8"?>'$'\n''': No such file or directory -:1.1: Document is empty

^ Could not determine name of script from the xml record, skipping.

I thought maybe it's failing on the script name; square brackets, but failed on new script without brackets.

Also errored on Run actions/upload-artifact@v3 until I created a backups folder, which I created manually, (even though .gitconfig excludes it) but it uploads 9bytes.

Where can I find out about the steps?

I can't find a macAdmins Slack channel for this, and my other inane questions ;-) Thanks

AllPurposeBen commented 1 year ago

@markkenny, Your first problem is bug that was getting me too, I've PR'd a fix for review: https://github.com/alectrona/git4jamfpro/pull/9

Can't speak to the other one. 😞

ryangball commented 1 year ago

Hey @markkenny, try to do a fresh pull as at least a portion of this is likely fixed with #9 and #10. Let me know the results.

Thanks! Ryan

markkenny commented 12 months ago

Sorry, stuggling to test; my work repo' won't allow me to fork and my personal repo won't me fork to a private repo'. I need to learn a bit more Git.