Git-resource not triggering on new commits

Hi there,

I have a git repository set up as a resource using the git-resource resource type. In my jobs I have the get step for the repository setup with trigger: true but I am not seeing the job being triggered when I push a new commit to the repository.

My pipeline:

resources:
  - name: ansible_runner
    type: git
    icon: github-circle
    source:
      uri: https://github.com/spire-allyjweir/ansible_runner.git
      username: spire-allyjweir
      password: [REDACTED]
      branch: master

  - name: ci-tasks
    icon: github-circle
    type: git
    source: {uri: https://github.com/spire-allyjweir/literate-tribble.git}

  - name: pipeline-image
    type: registry-image
    icon: docker
    source:
      repository: [REDACTED]
      username: [REDACTED]
      password: [REDACTED]


jobs:
  - name: build-image
    plan:
      - get: ci-tasks
      - get: ansible_runner
        trigger: true

      - task: build
        privileged: true
        file: ci-tasks/build-image.yml
        input_mapping: {input-repo: ansible_runner}
        output_mapping: {image: image}

      - put: pipeline-image
        params: {image: image/image.tar}

What am I missing here? I have tried pushing multiple times and refreshing the check on the resource from the Concourse Web UI however it still says the latest version is the one from a few hours ago.

Any help appreciated, thanks.

Shot in the dark, but GitHub could be caching heavily here.

Have you tried setting webhook_token and giving it a very long check interval like 24h?

It seemed to resolve itself, coinciding when I re-ordered my get steps to have the ansible_runner one with trigger: true first.

Final pipeline looked like:

resources:
  - name: ansible_runner
    type: git
    icon: github-circle
    source:
      uri: https://github.com/spire-allyjweir/ansible_runner.git
      username: spire-allyjweir
      password: [REDACTED]
      branch: master

  - name: ci-tasks
    icon: github-circle
    type: git
    source: {uri: https://github.com/spire-allyjweir/literate-tribble.git}

  - name: pipeline-image
    type: registry-image
    icon: docker
    source:
      repository: [REDACTED]
      username: [REDACTED]
      password: [REDACTED]


jobs:
  - name: build-image
    plan:
      - get: ansible_runner
        trigger: true
      - get: ci-tasks

      - task: build
        privileged: true
        file: ci-tasks/build-image.yml
        input_mapping: {input-repo: ansible_runner}
        output_mapping: {image: image}

      - put: pipeline-image
        params: {image: image/image.tar}

Weird but it works I guess.