Skip to content

Commit 024089f

Browse files
committed
chore: fix set of env vars for workflow
1 parent bf990f1 commit 024089f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ jobs:
3333
- name: Set base and head commits
3434
run: |
3535
if [ "${{github.event_name}}" == "push" ]; then
36-
export NX_BASE=origin/main~1
37-
export NX_HEAD=origin/main
36+
echo "NX_BASE=origin/main~1" >> "$GITHUB_ENV"
37+
echo "NX_HEAD=origin/main" >> "$GITHUB_ENV"
3838
else
39-
export NX_BASE=origin/main
40-
export NX_HEAD=HEAD
39+
echo "NX_BASE=origin/main" >> "$GITHUB_ENV"
40+
echo "NX_HEAD=HEAD" >> "$GITHUB_ENV"
4141
fi
4242
- name: Compile (Delta)
4343
run: npm run compile:ci:affected
@@ -205,11 +205,11 @@ jobs:
205205
- name: Set base and head commits
206206
run: |
207207
if [ "${{github.event_name}}" == "push" ]; then
208-
export NX_BASE=origin/main~1
209-
export NX_HEAD=origin/main
208+
echo "NX_BASE=origin/main~1" >> "$GITHUB_ENV"
209+
echo "NX_HEAD=origin/main" >> "$GITHUB_ENV"
210210
else
211-
export NX_BASE=origin/main
212-
export NX_HEAD=HEAD
211+
echo "NX_BASE=origin/main" >> "$GITHUB_ENV"
212+
echo "NX_HEAD=HEAD" >> "$GITHUB_ENV"
213213
fi
214214
- name: Compile (Delta)
215215
run: npm run compile:ci:affected

0 commit comments

Comments
 (0)