From fe37f7aee58826971c0d2ea7067615e05a766cad Mon Sep 17 00:00:00 2001 From: Daniel Cazzulino Date: Thu, 11 Jul 2024 13:02:39 -0300 Subject: [PATCH] Switch back to local dir `.bash_profile` The original issue arised when we specified a different working-directory. --- .github/workflows/samples.yml | 3 ++- .github/workflows/test/action.yml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/samples.yml b/.github/workflows/samples.yml index 847c0ef3..8acfbd3e 100644 --- a/.github/workflows/samples.yml +++ b/.github/workflows/samples.yml @@ -38,9 +38,10 @@ jobs: - name: ⚙ GNU grep if: matrix.os == 'macOS-latest' + working-directory: samples/dotnet run: | brew install grep - echo "/usr/local/opt/grep/libexec/gnubin:$(echo $PATH)" > $GITHUB_PATH + echo 'export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"' >> .bash_profile - name: 🧪 test uses: ./.github/workflows/test diff --git a/.github/workflows/test/action.yml b/.github/workflows/test/action.yml index aa454c36..83ee6a1f 100644 --- a/.github/workflows/test/action.yml +++ b/.github/workflows/test/action.yml @@ -15,6 +15,7 @@ runs: LC_ALL: en_US.utf8 working-directory: ${{ inputs.working-directory }} run: | + [ -f .bash_profile ] && source .bash_profile grep -V counter=0 exitcode=0