Skip to content

[BUG] wrong result of any_change output #314

@kaslav

Description

@kaslav

Is there an existing issue for this?

  • I have searched the existing issues

Does this issue exist in the latest version?

  • I'm using the latest release

Describe the bug?

any_changed output is false even though a file supplied in files input has been modified.

To Reproduce

These steps have to be defined:

- name: Check whether proto files have changed
  id: protos-changed
  uses: tj-actions/changed-files@v13
  with:
    files: |
      services.proto

- name: Run if proto file has changed
  if: steps.protos-changed.outputs.any_changed == 'true'
  run: echo proto files have changed

What OS are you seeing the problem on?

ubuntu-latest or ubuntu-20.04

Expected behavior?

Expected behaviour is to output any_changed as true if a file supplied in files input has been modified.

Relevant log output

Getting diff...
  Added files: 
  Copied files: 
  Deleted files: 
  Modified files: .github/workflows/build.yaml protobuf/src/main/protobuf/services/v1/services.proto
  Renamed files: 
  Type Changed files: 
  Unmerged files: 
  Unknown files: 
  All changed and modified files: .github/workflows/build.yaml protobuf/src/main/protobuf/services/v1/services.proto
  All changed files: .github/workflows/build.yaml protobuf/src/main/protobuf/services/v1/services.proto
  All modified files: .github/workflows/deploy.yaml protobuf/src/main/protobuf/services/v1/services.proto

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions