Skip to content

Commit 6a832c2

Browse files
committed
Update action to use direnv
1 parent 246731e commit 6a832c2

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/build-and-deploy-rcr-ui.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ jobs:
2525
- name: Install platform tooling
2626
timeout-minutes: 10
2727
run: |
28-
sudo apt-get -qq install npm
28+
sudo apt-get -qq install npm direnv
2929
sudo npm install -g pnpm
30-
30+
eval "$(direnv hook bash)"
31+
3132
- name: Checkout repository and submodules
3233
uses: actions/checkout@v4
3334
with:
@@ -41,7 +42,11 @@ jobs:
4142
repository-cache: false
4243

4344
- name: Install buildifier and buildozer
44-
run: bazel run //bin:bazel_env
45+
run: |
46+
direnv allow .
47+
eval "$(direnv export bash)"
48+
echo "PATH=$PATH" >> $GITHUB_ENV
49+
bazel run //bin:bazel_env
4550
4651
- name: Install project dependencies
4752
run: pnpm install

0 commit comments

Comments
 (0)