From 89e812fddd87eaa0a4ddbc293cc8d2e92571ac3b Mon Sep 17 00:00:00 2001 From: uku Date: Thu, 7 Nov 2024 21:00:30 +0100 Subject: [PATCH] add update lock action --- .forgejo/workflows/update-lock.yml | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .forgejo/workflows/update-lock.yml diff --git a/.forgejo/workflows/update-lock.yml b/.forgejo/workflows/update-lock.yml new file mode 100644 index 0000000..57148d0 --- /dev/null +++ b/.forgejo/workflows/update-lock.yml @@ -0,0 +1,31 @@ +name: Update flake.lock + +on: + workflow_dispatch: + +jobs: + update_flake_lock: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@v14 + + - name: Set git config + run: | + git config --global user.name "ukubot" + git config --global user.email "bot@uku.moe" + + - name: Update lockfile + run: | + export BRANCH="update-lock-$(date -I)" + git checkout -b "$BRANCH" + nix flake update --commit-lock-file + git push origin "$BRANCH" + + - name: Create Pull Request + run: | + echo EXPLODE