Currently, when running the CI from a worktree, it will fail with:
0++ git config --global ci.base-install-done
1fatal: not a git repository: .git/worktrees/test2
git config --global
is used here, because it allows to write a flag to storage on macOS and Linux. If someone knows of a different way to persist a flag on macOS and Linux, it should be used instead.