Paths_ignore not stopping job from running

My yaml file specifies that my jobs should not run if the only files changed are in the config folder:

name: Build

on:
  push:
    paths-ignore:
      - 'config/**'
  pull_request:
    paths-ignore:
      - 'config/**'

env:
  CI: true

jobs:
  unit:
    runs-on: ubuntu-latest

However this is not working, in this PR the job still runs:

Even though the only file changed matches the ignore pattern:

config/angular/repos/angular-extensions-pretty-html-log.json

What’s going on?