ci: update-flake: use one atomic commit

Use one atomic commit to simplify the commit history and prevent the
previous commits from individually breaking CI.
This commit is contained in:
NAHO 2025-11-28 17:50:18 +01:00
parent a1451bc404
commit b01dbcdc08
No known key found for this signature in database
GPG key ID: BFB5D5E3F4C95185

View file

@ -57,30 +57,21 @@ jobs:
- name: update lock files
run: |
nix flake update \
--commit-lock-file \
--option commit-lock-file-summary "flake: update public inputs"
nix flake update
nix flake update --flake ./flake/dev
nix flake update \
--commit-lock-file \
--flake ./flake/dev \
--option commit-lock-file-summary "flake: update dev inputs"
git add {,flake/dev/}flake.lock
# The nixpkgs maintainers may have changed, so keep all-maintainers
# in sync
if nix run .#all-maintainers; then
git add generated/all-maintainers.nix
if
! git commit --message "stylix: update all-maintainers list"
then
echo "::debug::generated/all-maintainers.nix has no changes"
fi
else
echo "::error::failed to update generated/all-maintainers.nix"
fi
git commit --message "flake: update all inputs"
- name: create pull request
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}