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
If you want to detect if a file was (added, deleted, renamed, ... ), you can use any_modified output; Alternatively, you can use a combination of any_deleted and any_changed to achieve the same outcome.
steps:
- name: Checkout repositoryuses: actions/checkout@v4with:
fetch-depth: 2
- name: Check if anything in system directory has changedid: check_changed_filesuses: tj-actions/changed-files@v45with:
files: ${{ runner.name }}/**
- name: Run step if any of the listed files above is modifiedif: steps.check_changed_files.outputs.any_modified == 'true'
steps:
- name: Checkout repositoryuses: actions/checkout@v4with:
fetch-depth: 2
- name: Check if anything in system directory has changedid: check_changed_filesuses: tj-actions/changed-files@v45with:
files: ${{ runner.name }}/**
- name: Run step if any of the listed files above is modifiedif: steps.check_changed_files.outputs.any_changed == 'true' || steps.check_changed_files.outputs.any_deleted == 'true'
If you would like more information on available outputs. See the documentation
Is this feature missing in the latest version?
Is your feature request related to a problem? Please describe.
I just want to detect if anything in a given directory has changed ( file added, file removed, file renamed, ... )
When using this approach
it won't detect deleted files for example.
Describe the solution you'd like?
It would be nice to have a boolean flag like
output_anything_has_changed
Describe alternatives you've considered?
I'm not sure if this is possible with a combination of existing flags. I couldn't find a flag for deleted files.
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: