This commit is contained in:
m3tm3re
2026-01-18 07:09:25 +01:00
parent db2596b1f8
commit a95478fc9e

View File

@@ -17,7 +17,7 @@ env:
GIT_COMMITTER_EMAIL: "bot@m3ta.dev"
# Global environment variables to prevent interactive prompts in any step
GIT_TERMINAL_PROMPT: "0"
GIT_ASKPASS: "/bin/echo"
GIT_ASKPASS: "echo"
jobs:
nix-update:
@@ -89,7 +89,7 @@ jobs:
local pkg=$1
local before=$2
local after=$(git rev-parse HEAD)
if [ "$before" != "$after" ]; then
echo "✓ Successfully updated $pkg (commit created)"
echo "true"
@@ -103,9 +103,9 @@ jobs:
if [ -n "${{ inputs.package }}" ]; then
echo "Updating specific package: ${{ inputs.package }}"
if [ -d "pkgs/${{ inputs.package }}" ]; then
BEFORE_HASH=$(git rev-parse HEAD)
# Run update (allow fail, but capturing output)
if nix-update --flake --commit "${{ inputs.package }}" 2>&1 | tee /tmp/update.log; then
# Check if commit was actually made
@@ -140,9 +140,9 @@ jobs:
for pkg in $PACKAGES; do
echo ""
echo "━━━ Checking $pkg ━━━"
BEFORE_HASH=$(git rev-parse HEAD)
if nix-update --flake --commit "$pkg" 2>&1 | tee /tmp/update-${pkg}.log; then
if [ "$(check_commit "$pkg" "$BEFORE_HASH")" = "true" ]; then
UPDATES_FOUND=true
@@ -164,7 +164,7 @@ jobs:
# Final verification of changes
COMMIT_COUNT=$(git rev-list --count master..HEAD)
if [ "$COMMIT_COUNT" -gt 0 ]; then
echo ""
echo "━━━ Summary ━━━"
@@ -178,7 +178,7 @@ jobs:
echo "━━━ Summary ━━━"
echo " No package updates found (no commits created)"
echo "has_updates=false" >> $GITHUB_OUTPUT
# Switch back to master and clean up empty branch
git checkout master
git branch -D "${BRANCH_NAME}" 2>/dev/null || true