Bug: github.job is empty in jobs.if

Test workflow:

on: push
jobs:
  runs:
    runs-on: ubuntu-latest
    if: github.job == ''
    steps:
      - run: echo Github current job [${{ github.job }}]

Expected: job is failed.
Actual: job is passing.

Please fix it. I wanted to use github.job together with workflow_dispatch to run custom jobs:

if: github.event.inputs.jobs == '' || contains(github.event.inputs.jobs, github.job)

Thanks for your feedback.
Before the job runs, the value of github.job is always empty. Only when the job is actually running, we can get the job context. If you are using this if conditional in jobs level, the value of github.job is always empty. So no matter what, your job will not be skipped. This is why you can not use if conditional at jobs level. Please use the if conditional in steps level. For example:

on:
  workflow_dispatch:
    inputs:
      jobs:

jobs:
  build:
    runs-on: ubuntu-latest
        
    steps:
      - name: test 
        if: ${{ github.event.inputs.jobs == '' || contains(github.event.inputs.jobs, github.job)}}
        run: echo Github current job [${{ github.job }}]

Yeah, that might work as well. In my case though the job contains up to 10 steps, so it would be inconvenient to paste that boilerplate code to every step. I managed to achieve the logic I wanted by hard-coding of the job ID in if clause:

on:
  workflow_dispatch:
    inputs:
      jobs:
        description: Jobs to run (defaults to all)
        required: false
jobs:    
  unit-tests:
    runs-on: ubuntu-latest
    if: github.event.inputs.jobs == '' || contains(github.event.inputs.jobs, 'unit-tests')