From 3d0d06b89fb58871eb85c592f4eb7a7907bc2f87 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Mon, 5 May 2025 17:42:45 +0200 Subject: [PATCH] fix(action): fix bash globbing when there are no results --- CHANGELOG.md | 6 ++++++ README.md | 2 +- action.yaml | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c5f0119..2833026 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 23ce99d..ed9fa97 100644 --- a/README.md +++ b/README.md @@ -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 }}" diff --git a/action.yaml b/action.yaml index d1acc52..d321dfe 100644 --- a/action.yaml +++ b/action.yaml @@ -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