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
- name: Check For Files To Add
id: check_additions
uses: andstor/[email protected]
with:
files: "changed-sources/force-app, changed-sources/custom-metadata"
I keep getting log message These files don't exist: changed-sources/force-app and then when I check in another action step if: steps.check_additions.outputs.files_exists == 'true' value is apparently false even though the second directory changed-sources/custom-metadata does include files.
Workaround is running action twice and adding an or (||): steps.check_force_additions.outputs.files_exists == 'true' || steps.check_metadata_additions.outputs.files_exists == 'true'
I've had mixed results with different systems over the years with directories not registering on globs unless they have a trailing slash, and I prefer to prefix my relative paths with ./ to make sure it's clear to the running program that it needs to run relative to the running directory (which should be your workspace).
@Destreyf Thanks so much for this. Whenever I refactor I'll definitely give this a try. In the meantime, I just decided to run sgd twice for now. Once for each folder.
I keep getting log message
These files don't exist: changed-sources/force-app
and then when I check in another action stepif: steps.check_additions.outputs.files_exists == 'true'
value is apparentlyfalse
even though the second directorychanged-sources/custom-metadata
does include files.Workaround is running action twice and adding an or (
||
):steps.check_force_additions.outputs.files_exists == 'true' || steps.check_metadata_additions.outputs.files_exists == 'true'
Says here it should work: https://github.com/andstor/file-existence-action/blob/main/README.md?plain=1#L26
The text was updated successfully, but these errors were encountered: