Skip to content

Commit

Permalink
CD into .github dir before getting formulae path (#11)
Browse files Browse the repository at this point in the history
When trying to use formula with a name that is equal to a name of a directory int he current working directory, it will fail to give the correct path to the formula file.

Signed-off-by: Yurii Rashkovskii <[email protected]>
  • Loading branch information
yrashk authored Aug 21, 2023
1 parent 0e9c049 commit 8cb15a1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ runs:
brew update --preinstall
brew_repository="$(brew --repository)"
mkdir -p .github
cat "$(brew edit --print-path --formula colima)" > .github/brew-colima
cat "$(brew edit --print-path --formula lima)" > .github/brew-lima
cat "$(brew edit --print-path --formula docker )" > .github/brew-docker
cat "$(brew edit --print-path --formula docker-compose)" > .github/brew-docker-compose
cd .github
cat "$(brew edit --print-path --formula colima)" > brew-colima
cat "$(brew edit --print-path --formula lima)" > brew-lima
cat "$(brew edit --print-path --formula docker )" > brew-docker
cat "$(brew edit --print-path --formula docker-compose)" > brew-docker-compose
shell: bash
- name: Pre-cache
run: echo "BREW_CELLAR=$(brew --cellar)" >> $GITHUB_ENV
Expand Down

0 comments on commit 8cb15a1

Please sign in to comment.