GH Actions: push -> paths doesn't seem to work for single files?

I have this github action with push path triggers https://github.com/AlistairB/label-maker/blob/master/.github/workflows/publish-ci-base.yml#L6-L10

I push a commit modifying 1 of these files https://github.com/AlistairB/label-maker/commit/77983e88548a9db05f2d140acbcc983abb91491d , but the action does not trigger.

‘push-> paths’ works for single file on my end. Please fix the ‘bad indentation of a mapping entry’ for paths items, workflow is triggered successfully then.

Code as below:

on:
  push:
    paths:
      - 'stack.yaml'
      - 'stack.yaml.lock'
      - 'package.yaml'
      - 'custom-snapshot.yaml'
      - 'support/ci-base/**'

patherror.png

Ok thanks. It seems that paths-ignore was stopping it, even if I set it to ignore ‘v*’, which seems buggy as I am just pushing regular commits. I had an issue previously where pushing tags would trigger this build. Hopefully that won’t happen now.

1 Like

Hi @alistairb ,

Tags don’t ‘change’ files, so you cannot combine them with the ‘paths’ statement. It’s by design that regular commit didn’t trigger the workflow.