Fix: use git -C to avoid changing working directory
The previous code did 'cd $WORK_DIR' which caused the output file to be written to the temp directory instead of the project directory. This broke artifact uploads. Use 'git -C $WORK_DIR' instead to run git commands without changing the current directory.