Quantcast
Channel: Is it possible to run the job only when a specific file changes?
Browsing latest articles
Browse All 14 View Live

Is it possible to run the job only when a specific file changes?

Is there a syntax to define a job to run only if some files change comparing to last commit? Read full topic

View Article


Is it possible to run the job only when a specific file changes?

There is, you can use on.<push|pull_request>.paths syntax for that. E.g. to run only on pushes that changed example.c: on: push: paths: - 'example.c' You can use globs. Read full topic

View Article


Is it possible to run the job only when a specific file changes?

Thanks for your reply! on.<push|pull_request>.paths can only make a workflow to run when some designated files change, but not a job. I wonder if there is a way to to only run specific jobs when...

View Article

Is it possible to run the job only when a specific file changes?

You could set job level outputs in a previous job A. Use git command to check whether file changed during the workflow run. And then if file changed , you could set an output variable to true using...

View Article

Is it possible to run the job only when a specific file changes?

I’m also interested in this. Use case: Job A builds Docker image for tests: expensive so only do if Dockerfile changed! Job B runs the tests, using the image from A Can’t split into two workflows...

View Article


Is it possible to run the job only when a specific file changes?

I am having the same issue here. We are running a monorepo and I can’t really split my workflow into multiple ones but I need to be able to run some specific steps or jobs when a directory contains...

View Article

Image may be NSFW.
Clik here to view.

Is it possible to run the job only when a specific file changes?

You actually can, check out this github action that was created github.com tj-actions/verify-changed-files A github action to detect file changes during workflow execution. The workflow a would look...

View Article

Is it possible to run the job only when a specific file changes?

I wanted to note that this action is for detecting changes during the workflow execution, not for checking files changed since the last commit the job was run on. I made the mistake of thing this...

View Article


Image may be NSFW.
Clik here to view.

Is it possible to run the job only when a specific file changes?

@noahjahn You’re correct the action listed above only runs when certain files changes during the workflow execution process, for detecting files that have changed against your default branch see...

View Article


Is it possible to run the job only when a specific file changes?

how do i express this: on: push: # (or pull requests) paths: - 'src' - 'tests' Read full topic

View Article

Is it possible to run the job only when a specific file changes?

GitHub - tj-actions/changed-files: Github action to retrieve all changed files. is a great workaround for this problem, but I’d like to see Github Actions support filtering on a per-job level as well...

View Article

Is it possible to run the job only when a specific file changes?

There are similar actions out there, but I liked @jackton1’s tj-actions/changed-files. It is shell script based and makes it a breeze to audit. Audit in my opinion is a must when taking a dependency...

View Article

Image may be NSFW.
Clik here to view.

Is it possible to run the job only when a specific file changes?

GitHub Docs Workflow syntax for GitHub Actions - GitHub Docs A workflow is a configurable automated process made up of one or more jobs. You must create a YAML file to define your workflow...

View Article


Is it possible to run the job only when a specific file changes?

We solved this using tj-actions/changed-files as suggested here. Our requirement was to only run the job in case one of the files changed, but we didn’t want to cancel midway through (i.e. start a...

View Article
Browsing latest articles
Browse All 14 View Live