diff --git a/.gitea/workflows/autoupdate.yml b/.gitea/workflows/autoupdate.yml index 90eda22..5399323 100644 --- a/.gitea/workflows/autoupdate.yml +++ b/.gitea/workflows/autoupdate.yml @@ -27,8 +27,17 @@ jobs: - name: Run nix flake update run: nix flake update - - name: Run nix flake check - run: nix flake check --all-systems --verbose + + - name: Commit and Push flake.lock + run: | + git config user.name "malobot" + git config user.email "malobot@systemli.org" + git stash push + git branch nixpkgs_bump_$(date +%Y%m%d) + git checkout nixpkgs_bump_$(date +%Y%m%d) + git stash pop + git add flake.lock + git diff --staged --quiet || git commit -m "Update flake.lock" - name: Create Gitea PR uses: https://github.com/arifer612/Gitea-PR-action@v1