From 3313c39f9ac9e9c6d1c29938d92dcd5500196923 Mon Sep 17 00:00:00 2001 From: Bruno Perel Date: Mon, 2 Sep 2024 17:06:12 +0200 Subject: [PATCH] Fix deployment when no packages have changed --- .github/workflows/deploy.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6c2e97c59..5f3d69312 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -53,13 +53,13 @@ jobs: - name: Check apps changed since the last successful commit run: | if [ "${{ env.NX_BASE }}" == "ffffff" ]; then - changedAppsCommitFilter='[${{ env.NX_HEAD }}]' + lastSuccessfulCommit=${{ env.NX_HEAD }} else - changedAppsCommitFilter="[${{ env.NX_BASE }}]" + lastSuccessfulCommit=${{ env.NX_BASE }} fi echo "lastSuccessfulCommit=$lastSuccessfulCommit" >> "$GITHUB_ENV" - changedApps=`pnpm -r -F [$lastSuccessfulCommit] ls --depth -1` - echo "Changed apps: $changedApps" + echo "Changed apps:" + pnpm -r -F [$lastSuccessfulCommit] ls --depth -1 - name: Install dependencies run: |