You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The tj-actions/changed-files action occasionally reports that files have changed and triggers specific jobs that would otherwise be skipped in our workflow on pull requests.
User ABC submits PR 1234 that changes common-workflow.yml.
User XYZ submits PR 2345 that changes files within the path-abc/** file path only.
PR 1234 gets merged to main by a maintainer
User XYZ pushes a new commit to PR 2345 that changes only files within the path-abc/** file path.
During the execution of the workflow in Step 2, everything works as we expect. It's during the execution of Step 4 after the PR that changes the workflow has been merged to main is when we observe this obscure execution of both the path_abc and path_xyz.
What OS are you seeing the problem on?
ubuntu-latest or ubuntu-20.04
Expected behavior?
Step 4 should only run the job for path_abc and not for path_xyz.
Relevant log output
Added files:
Copied files:
Deleted files:
Modified files: .github/workflows/common-workflow.yml
Renamed files:
Type Changed files:
Unmerged files:
Unknown files:
All changed and modified files: .github/workflows/common-workflow.yml
All changed files: .github/workflows/common-workflow.yml
All modified files: .github/workflows/common-workflow.yml
Anything else?
Could this be related to the any_changed output versus a different output variable we should use for this use case?
The goal that we are trying to mimic here is the equivalent of GitHub Action's paths syntax but rather than the workflow being conditionalized on the path changes, specific jobs within the workflow are to give us the best precision on running very long tests only on the most applicable modules based on the changes in the pull request or push.
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
@Naros Based on the description you provided your approach is the right way to go, there have been a number of bug fixes since v13.1 and I'll recommend upgrading to the latest version v14.3.
Is there an existing issue for this?
Does this issue exist in the latest version?
Describe the bug?
The
tj-actions/changed-files
action occasionally reports that files have changed and triggers specific jobs that would otherwise be skipped in our workflow on pull requests.To Reproduce
We have a workflow defined like the following:
common-workflow.yml
.path-abc/**
file path only.main
by a maintainerpath-abc/**
file path.During the execution of the workflow in Step 2, everything works as we expect. It's during the execution of Step 4 after the PR that changes the workflow has been merged to
main
is when we observe this obscure execution of both thepath_abc
andpath_xyz
.What OS are you seeing the problem on?
ubuntu-latest or ubuntu-20.04
Expected behavior?
Step 4 should only run the job for
path_abc
and not forpath_xyz
.Relevant log output
Anything else?
Could this be related to the
any_changed
output versus a different output variable we should use for this use case?The goal that we are trying to mimic here is the equivalent of GitHub Action's
paths
syntax but rather than the workflow being conditionalized on the path changes, specific jobs within the workflow are to give us the best precision on running very long tests only on the most applicable modules based on the changes in the pull request or push.Code of Conduct
The text was updated successfully, but these errors were encountered: