Skip to content

Commit 5bee70e

Browse files
ImTotemclaude
andcommitted
fix(infra): force reimport workflows to apply JSON structure changes
HTTP Request nodes use predefinedCredentialType which references credentials by type+name, not by ID — should survive reimport. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 291a125 commit 5bee70e

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

infra/scripts/init_n8n.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,11 @@ fi
8080
echo "3. Setting up owner account..."
8181
setup_owner
8282

83-
echo "4. Importing workflows (first deploy only)..."
84-
import_if_new "/workflows/pg_sheets_sync.json" "pg-sheets-sync"
85-
import_if_new "/workflows/link_auto_expire.json" "link-auto-expire"
83+
echo "4. Importing workflows..."
84+
# Force reimport to apply JSON changes (credential links via predefinedCredentialType)
85+
$COMPOSE exec -T n8n n8n import:workflow --input="/workflows/pg_sheets_sync.json" 2>&1
86+
$COMPOSE exec -T n8n n8n import:workflow --input="/workflows/link_auto_expire.json" 2>&1
87+
$COMPOSE exec -T n8n n8n publish:workflow --id="pg-sheets-sync" 2>&1 || true
88+
$COMPOSE exec -T n8n n8n publish:workflow --id="link-auto-expire" 2>&1 || true
8689

8790
echo "=== n8n Init complete ==="

0 commit comments

Comments
 (0)