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
*Describe the Bug
The tg_command function does not interpret multi-level folder paths with wildcards correctly. For example, running the following command in the terminal works as expected:
terragrunt run-all plan --terragrunt-working-dir my-folder/*/*-test
In this case, terragrunt successfully plans all content within folders ending in "-test".
However, attempting to run the same command with tg_command results in an error indicating the folder path cannot be found:
tg_command: 'run-all plan --terragrunt-working-dir ${{ vars.PROJECT_ID }}/*/*-${{ env.git_environment }}'
Error received:
ERROR lstatmy-folder/*/*-test: no such file or directory
Interestingly, removing the wildcard syntax resolves the issue, as shown below:
tg_command: 'run-all plan --terragrunt-working-dir ${{ vars.PROJECT_ID }}/folder-name/folder-prefix-${{ env.git_environment }}'
This simplified version also works without error:
tg_command: 'run-all plan --terragrunt-working-dir ${{ vars.PROJECT_ID }}'
However, using a partial wildcard pattern like the example below still triggers a "folder not found" error:
tg_command: 'run-all plan --terragrunt-working-dir ${{ vars.PROJECT_ID }}/folder-name/*-${{ env.git_environment }}'
Suggestion:
The issue might stem from tg_command interpreting * as a literal folder name, rather than as a wildcard.
Expected Behavior
The tg_command should recognize and correctly handle folder paths with multi-level wildcard patterns, similar to the behavior of the terragrunt command in the terminal.
*Describe the Bug
The tg_command function does not interpret multi-level folder paths with wildcards correctly. For example, running the following command in the terminal works as expected:
In this case, terragrunt successfully plans all content within folders ending in "-test".
However, attempting to run the same command with tg_command results in an error indicating the folder path cannot be found:
Error received:
Interestingly, removing the wildcard syntax resolves the issue, as shown below:
This simplified version also works without error:
However, using a partial wildcard pattern like the example below still triggers a "folder not found" error:
Suggestion:
The issue might stem from tg_command interpreting * as a literal folder name, rather than as a wildcard.
Expected Behavior
The tg_command should recognize and correctly handle folder paths with multi-level wildcard patterns, similar to the behavior of the terragrunt command in the terminal.
Terragrunt Action Version: V2
Environment Details:
The text was updated successfully, but these errors were encountered: