Issues with build.ignore command not ignoring as required

Hi, @gray. I cannot believe I missed this from the environment variable documentation about Git metadata:

  • COMMIT_REF : Reference ID (also known as ‘SHA’ or ‘hash’) of the commit we’re building.
  • CACHED_COMMIT_REF : Reference ID (also known as ‘SHA’ or ‘hash’) of the last commit that we built before the current build.

There is an environment variable of the previous build’s commit SHA-1 ref. With this environment variable, I don’t think any API calls are needed. Does this meet the requirements for the build.ignore command?

git diff --quiet "${CACHED_COMMIT_REF}" "${COMMIT_REF}" \
  .netlify-dummy-dir/* \
  .storybook/* \
  app/javascript/* \
  babel.config.json \
  config/webpack/* \
  netlify.toml \
  tsconfig.json \
  yarn.lock \