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

@ -2,6 +2,12 @@
All notable changes to this project will be documented in this file.
## 1.0.1 - 2025-05-05
### Changed
- Fixed bash globbing when there are no results.
## 1.0.0 - 2025-04-11
### Added

View file

@ -6,7 +6,7 @@ as well as tofu tests on the repository of an OpenTofu module.
## Usage example
``` yaml
- uses: "https://git.adyxax.org/adyxax/action-tofu-test@1.0.0"
- uses: "https://git.adyxax.org/adyxax/action-tofu-test@1.0.1"
with:
aws-access-key-id: "${{ vars.AWS_ACCESS_KEY_ID }}"
aws-access-key-secret: "${{ secrets.AWS_ACCESS_KEY_SECRET }}"

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