ci: verify package builds before creating PR
This commit is contained in:
@@ -140,6 +140,24 @@ env:
|
|||||||
git branch -D "${BRANCH_NAME}" 2>/dev/null || true
|
git branch -D "${BRANCH_NAME}" 2>/dev/null || true
|
||||||
fi
|
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
|
- name: Push branch and create pull request
|
||||||
if: steps.update.outputs.has_updates == 'true'
|
if: steps.update.outputs.has_updates == 'true'
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -13,6 +13,6 @@ prev.n8n.overrideAttrs (oldAttrs: rec {
|
|||||||
pname = oldAttrs.pname;
|
pname = oldAttrs.pname;
|
||||||
inherit version src;
|
inherit version src;
|
||||||
fetcherVersion = 1;
|
fetcherVersion = 1;
|
||||||
hash = "sha256-M/HXRii4FotDC/xIa6DVlY13rCHMq7oZNtPi7hvDXik=";
|
hash = "sha256-Q30IuFEQD3896Hg0HCLd38YE2i8fJn74JY0o95LKJis=";
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user