Fix: use git -C to avoid changing working directory

Summary

Hotfix for the fallback logic added in !164 (merged).

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 in downstream repos.

Fix

Use git -C $WORK_DIR instead to run git commands without changing the current directory.

Test

  • balance_tracker pipeline showed artifact upload failure with previous code
  • Retry pipeline after this fix

Merge request reports

Loading