diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index c782c50..1365b2b 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -32,7 +32,7 @@ jobs: - name: Init providers run: | l=$(find . -maxdepth 1 -type d -name "[a-z]*") - for i in ${l[@]} ;do echo $i; tofu init $i; done + for i in ${l[@]} ;do echo $i; (cd $i; tofu init); done - name: Run Pre-Commit run: > pre-commit run