ci: verify package builds before creating PR

This commit is contained in:
m3tm3re
2026-01-14 20:30:28 +01:00
parent 6221984a29
commit f2e0200568
2 changed files with 19 additions and 1 deletions

View File

@@ -140,6 +140,24 @@ env:
git branch -D "${BRANCH_NAME}" 2>/dev/null || true
fi
- name: Verify packages build
if: steps.update.outputs.has_updates == 'true'
run: |
PACKAGES="${{ steps.update.outputs.updated_packages }}"
echo "Verifying builds for: $PACKAGES"
# Parse comma-separated package list
IFS=', ' read -ra PKG_ARRAY <<< "$PACKAGES"
for pkg in "${PKG_ARRAY[@]}"; do
echo "━━━ Building $pkg ━━━"
if nix build .#$pkg; then
echo "✓ $pkg built successfully"
else
echo "❌ Build failed for $pkg"
exit 1
fi
done
- name: Push branch and create pull request
if: steps.update.outputs.has_updates == 'true'
run: |

View File

@@ -13,6 +13,6 @@ prev.n8n.overrideAttrs (oldAttrs: rec {
pname = oldAttrs.pname;
inherit version src;
fetcherVersion = 1;
hash = "sha256-M/HXRii4FotDC/xIa6DVlY13rCHMq7oZNtPi7hvDXik=";
hash = "sha256-Q30IuFEQD3896Hg0HCLd38YE2i8fJn74JY0o95LKJis=";
};
})