From fde0bb2f9109248564a309667b898f3df0836d0f Mon Sep 17 00:00:00 2001 From: ralren Date: Mon, 26 Sep 2022 12:36:08 -0700 Subject: [PATCH] ubuntu-latest got rid of homebrew on the path so gotta add it in the workflow --- .github/workflows/validate.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 486173d..734609e 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -11,6 +11,7 @@ jobs: uses: actions/checkout@v3 - name: Install pre-commit run: | + eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" brew install terraform-docs pip install pre-commit - name: Set up Go @@ -27,4 +28,6 @@ jobs: path: ~/.cache/pre-commit key: pre-commit-dot-cache-{{ hashFiles(.pre-commit-config.yaml') }} - name: Pre-commit checks - run: pre-commit run --all-files --show-diff-on-failure + run: | + eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" + pre-commit run --all-files --show-diff-on-failure