Skip to content

Commit cd9a1bf

Browse files
ci: fix build harness workflow
1 parent 18c9a6e commit cd9a1bf

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

‎.github/workflows/build_harnesses.yml‎

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,18 @@ jobs:
3838
# Keep in sync with the existing iOS E2E workflow, which tracks latest-stable
3939
# because Firebase iOS SDK updates can require newer Xcode versions.
4040
XCODE_VERSION: latest-stable
41-
IOS_GOOGLE_SERVICES_PATH: ${{ runner.temp }}/GoogleService-Info.plist
42-
ANDROID_GOOGLE_SERVICES_PATH: ${{ runner.temp }}/google-services.json
4341
steps:
4442
- uses: actions/checkout@v4
4543
with:
4644
fetch-depth: 50
4745

46+
# `runner` is not valid in job-level `env`; set paths in a step so
47+
# `${{ runner.temp }}` is evaluated in a context that supports it.
48+
- name: Set CI Firebase config paths
49+
run: |
50+
echo "IOS_GOOGLE_SERVICES_PATH=${{ runner.temp }}/GoogleService-Info.plist" >> "$GITHUB_ENV"
51+
echo "ANDROID_GOOGLE_SERVICES_PATH=${{ runner.temp }}/google-services.json" >> "$GITHUB_ENV"
52+
4853
- uses: actions/setup-node@v4
4954
with:
5055
node-version: 22
@@ -137,14 +142,16 @@ jobs:
137142
harness:
138143
- bare
139144
- expo
140-
env:
141-
IOS_GOOGLE_SERVICES_PATH: ${{ runner.temp }}/GoogleService-Info.plist
142-
ANDROID_GOOGLE_SERVICES_PATH: ${{ runner.temp }}/google-services.json
143145
steps:
144146
- uses: actions/checkout@v4
145147
with:
146148
fetch-depth: 50
147149

150+
- name: Set CI Firebase config paths
151+
run: |
152+
echo "IOS_GOOGLE_SERVICES_PATH=${{ runner.temp }}/GoogleService-Info.plist" >> "$GITHUB_ENV"
153+
echo "ANDROID_GOOGLE_SERVICES_PATH=${{ runner.temp }}/google-services.json" >> "$GITHUB_ENV"
154+
148155
- uses: actions/setup-node@v4
149156
with:
150157
node-version: 22

0 commit comments

Comments
 (0)