From 4066af710420e9140e9cc71839fd11348c937e83 Mon Sep 17 00:00:00 2001 From: maratsh <533533+maratsh@users.noreply.github.com> Date: Fri, 13 Sep 2024 11:36:39 +0200 Subject: [PATCH] fix: pipeline branch build issues (#246) --- .github/workflows/nx-branch.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/nx-branch.yaml b/.github/workflows/nx-branch.yaml index a93f6a96..97ff66d0 100644 --- a/.github/workflows/nx-branch.yaml +++ b/.github/workflows/nx-branch.yaml @@ -16,15 +16,16 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - # Cache node_modules + ref: ${{ github.head_ref }} - uses: actions/setup-node@v4 with: node-version: 18 cache: 'npm' - run: npm ci - - uses: nrwl/nx-set-shas@v3 - # This line is needed for nx affected to work when CI is running on a PR - - run: git branch --track main origin/main + - uses: nrwl/nx-set-shas@v4 + - run: | + echo "BASE: ${{ env.NX_BASE }}" + echo "HEAD: ${{ env.NX_HEAD }}" - name: Set up Python uses: actions/setup-python@v3 with: