From 1c20e7c3ec69ed09d6bf73ee3323e50e5e1c4812 Mon Sep 17 00:00:00 2001 From: uku Date: Thu, 7 Nov 2024 21:25:04 +0100 Subject: [PATCH] moar stuff --- .forgejo/workflows/update-lock.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/update-lock.yml b/.forgejo/workflows/update-lock.yml index 57148d0..256a0d3 100644 --- a/.forgejo/workflows/update-lock.yml +++ b/.forgejo/workflows/update-lock.yml @@ -20,12 +20,14 @@ jobs: git config --global user.email "bot@uku.moe" - name: Update lockfile + id: update_lockfile run: | - export BRANCH="update-lock-$(date -I)" - git checkout -b "$BRANCH" + git checkout -b "update-lock-$(date -I)" nix flake update --commit-lock-file - git push origin "$BRANCH" + echo "commits=$(git log --oneline origin/main..HEAD)" >> "$GITHUB_OUTPUT" - name: Create Pull Request + if: ${{ steps.update_lockfile.outputs.commits }} != "" run: | + git push origin HEAD echo EXPLODE