Properly configure a monolith netlify.toml file?

I have been playing around with the netlify.toml file and i am not sure if this is possible anymore.

I am building 2 sites from the same repo.
e.g
-Root

  • Site A
    • netlify.toml
  • Site B
    • netlify.toml

I have an [build] ignore setting and a [deploy] ignore setting inside the toml file that looks like this:

[build]
  ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ."
[deploy]
  ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ."

From what i read there needs to be a netlify.toml file on the root of the application which specifies the base directory.
e.g
-Root
++netlify.toml

  • Site A
    • netlify.toml
  • Site B
    • netlify.toml

and be configured to target the build directory. What if i need it to target Site A on some deployments and Site B on some deployments?

Would it i be needing to use env variables to configure a dynamic base directory? Is there a step that i am missing or misunderstanding?

Hiya, are you still experiencing this issue?

I solved it by using ENV Variables and using a base netlify.toml that specifies the path to a bash script that uses the ENV to set the build project