From b118ad45e4456d8c997e2682483a87539e147752 Mon Sep 17 00:00:00 2001 From: Daniel Cazzulino Date: Thu, 11 Jul 2024 12:36:59 -0300 Subject: [PATCH] Ensure we use a ~ bash profile And render the used grep version for troubleshooting --- .github/workflows/samples.yml | 2 +- .github/workflows/test/action.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/samples.yml b/.github/workflows/samples.yml index dc70a577..847c0ef3 100644 --- a/.github/workflows/samples.yml +++ b/.github/workflows/samples.yml @@ -40,7 +40,7 @@ jobs: if: matrix.os == 'macOS-latest' run: | brew install grep - echo 'export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"' >> .bash_profile + echo "/usr/local/opt/grep/libexec/gnubin:$(echo $PATH)" > $GITHUB_PATH - name: 🧪 test uses: ./.github/workflows/test diff --git a/.github/workflows/test/action.yml b/.github/workflows/test/action.yml index e2b879c4..aa454c36 100644 --- a/.github/workflows/test/action.yml +++ b/.github/workflows/test/action.yml @@ -15,7 +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 reset="\e[0m"