From 1ea79faec52ea16d5974c962d1b4abdc4968e3bb Mon Sep 17 00:00:00 2001 From: Thomas Schaffter Date: Tue, 25 Feb 2025 18:57:12 +0000 Subject: [PATCH] chore: source dev-env before nx affected --- .github/actions/setup-dev-container/action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup-dev-container/action.yml b/.github/actions/setup-dev-container/action.yml index aaacc5e22..1769ce398 100644 --- a/.github/actions/setup-dev-container/action.yml +++ b/.github/actions/setup-dev-container/action.yml @@ -88,7 +88,8 @@ runs: id: get-affected-projects shell: bash run: | - AFFECTED_PROJECTS=$(devcontainer exec --workspace-folder ../sage-monorepo bash -c "nx show projects --affected --sep ','") + AFFECTED_PROJECTS=$(devcontainer exec --workspace-folder ../sage-monorepo bash -c " + . ./dev-env.sh && nx show projects --affected --sep ','") echo "Affected projects: $AFFECTED_PROJECTS" echo "affected_projects=$AFFECTED_PROJECTS" >> $GITHUB_ENV echo "::set-output name=affected_projects::$AFFECTED_PROJECTS"