fix(action): fix bash globbing when there are no results

This commit is contained in:
Julien Dessaux 2025-05-05 17:42:45 +02:00
parent 193a610536
commit 3d0d06b89f
Signed by: adyxax
GPG key ID: F92E51B86E07177E
3 changed files with 8 additions and 2 deletions

View file

@ -45,7 +45,7 @@ runs:
run: |
unset GITHUB_TOKEN
export AWS_CONFIG_FILE="$(pwd)/aws_config"
shopt -s globstar
shopt -s globstar nullglob
for lockfile in **/.terraform.lock.hcl; do
(cd "$(dirname "$lockfile")"; tofu init; tofu providers lock -platform=linux_amd64)
done