From 6079e2027d2d85b24f571ee668cc6092c17c08a6 Mon Sep 17 00:00:00 2001 From: Edd Date: Wed, 13 Apr 2022 09:35:09 +0000 Subject: [PATCH] Fix IPFS change detection nx affected `head` was set to `master` instead of `HEAD`, which cause every commit to detect a change and deploy. - Fix head argument for nx affected command --- tools/ipfs-deploy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ipfs-deploy.js b/tools/ipfs-deploy.js index 6fbf67617..bb6d7b844 100755 --- a/tools/ipfs-deploy.js +++ b/tools/ipfs-deploy.js @@ -104,7 +104,7 @@ readdirSync(projectPath).forEach((proj) => { try { const affectedSinceCommit = execSync( - `yarn nx print-affected --base=${baseCommit} --head=master --select=projects` + `yarn nx print-affected --base=${baseCommit} --head=HEAD --select=projects` ); // Detect if this project name is in output, taking care not to match names that are