fix(action): fix bash globbing when there are no results
This commit is contained in:
parent
193a610536
commit
3d0d06b89f
3 changed files with 8 additions and 2 deletions
|
@ -2,6 +2,12 @@
|
||||||
|
|
||||||
All notable changes to this project will be documented in this file.
|
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
|
## 1.0.0 - 2025-04-11
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -6,7 +6,7 @@ as well as tofu tests on the repository of an OpenTofu module.
|
||||||
## Usage example
|
## Usage example
|
||||||
|
|
||||||
``` yaml
|
``` 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:
|
with:
|
||||||
aws-access-key-id: "${{ vars.AWS_ACCESS_KEY_ID }}"
|
aws-access-key-id: "${{ vars.AWS_ACCESS_KEY_ID }}"
|
||||||
aws-access-key-secret: "${{ secrets.AWS_ACCESS_KEY_SECRET }}"
|
aws-access-key-secret: "${{ secrets.AWS_ACCESS_KEY_SECRET }}"
|
||||||
|
|
|
@ -45,7 +45,7 @@ runs:
|
||||||
run: |
|
run: |
|
||||||
unset GITHUB_TOKEN
|
unset GITHUB_TOKEN
|
||||||
export AWS_CONFIG_FILE="$(pwd)/aws_config"
|
export AWS_CONFIG_FILE="$(pwd)/aws_config"
|
||||||
shopt -s globstar
|
shopt -s globstar nullglob
|
||||||
for lockfile in **/.terraform.lock.hcl; do
|
for lockfile in **/.terraform.lock.hcl; do
|
||||||
(cd "$(dirname "$lockfile")"; tofu init; tofu providers lock -platform=linux_amd64)
|
(cd "$(dirname "$lockfile")"; tofu init; tofu providers lock -platform=linux_amd64)
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue