question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

on.<push|pull_request>.path ignores provided "path" and triggers for any PR.

See original GitHub issue

on.<push|pull_request>.path ignores provided “path” and triggers for any PR and any push.

Here’s the workflow, which doesn’t honor the “path” for PRs: https://github.com/ispc/ispc/blob/master/.github/workflows/rebuild-llvm10.yml

It does trigger workflow for any commit to master and any PR, ignoring providing path "llvm_patches/*10_0*".

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
akashagarwal7commented, Nov 21, 2022

Hi @TingluoHuang! Was this ever fixed? I have similar behaviour with on.<push|pull_request>.path-ignores not ignoring markdown files specified like so:

on:
  pull_request:
    branches:
      - "*"
    # Ignore if a commit only includes changes to a Markdown file.
    paths-ignore:
      - "**/*.md"

The push equivalent seems to be working flawlessly. Happy to create a new issue if need be.

1reaction
TingluoHuangcommented, Jun 23, 2020

@hfaulds already created an internal issue to track that problem. 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to trigger an action on push or pull request but not both?
I have a follow up question. Is it possible to run actions on branches which have not been pull requested, but don't run...
Read more >
Triggers | Dev Cheatsheets
From On push pull request paths in the docs. Ignore a branch or tag. Note that if you use a rule from another...
Read more >
update-webhook — AWS CLI 2.4.18 Command Reference
Works with pull request events only. FILE_PATH. A webhook triggers a build when the path of a changed file matches the regular expression...
Read more >
Trigger pipeline only if certain files are changed
Concourse.ci, Drone.ci, and I assume other CI servers provide the option to restrict steps to commits only containing certain file paths.
Read more >
Conditions
Same as pathsMatch (against commits for pull requests), except it will ignore deleted files in the supplied commits for the pull request. This...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found