Skip to content

Commit

Permalink
Fix deployment when no packages have changed
Browse files Browse the repository at this point in the history
  • Loading branch information
bperel committed Sep 2, 2024
1 parent 66f20e3 commit 3313c39
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 3313c39

Please sign in to comment.