ci: don't use graphql to commit (#188)

* ci: don't use graphql to commit

* style: force reformatting of dev/flake.nix
This commit is contained in:
seth 2024-05-21 16:07:44 -06:00 committed by GitHub
parent 5e1a679604
commit 4f978e6173
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 30 additions and 28 deletions

View file

@ -25,6 +25,13 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.PUSH_TOKEN }}
- name: Set Git user info
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Get short revision
id: rev
@ -41,13 +48,11 @@ jobs:
'nixpkgs#nixfmt-rfc-style' -- .
- name: Commit changes
env:
GITHUB_TOKEN: ${{ secrets.PUSH_TOKEN }}
uses: planetscale/ghcommit-action@v0.1.39
with:
commit_message: "style: format ${{ steps.rev.outputs.rev }}"
repo: "${{ github.repository }}"
branch: "${{ github.head_ref || github.ref_name }}"
run: |
if ! git diff --color=always --exit-code; then
git commit -am "style: format ${{ steps.rev.outputs.rev }}"
git push
fi
validate-sources:
name: Validate sources

View file

@ -17,12 +17,12 @@
};
outputs =
{
self,
nixpkgs,
nixpkgs-stable,
home-manager,
home-manager-stable,
{ self
, nixpkgs
, nixpkgs-stable
, home-manager
, home-manager-stable
,
}:
let
systems = [
@ -41,11 +41,10 @@
in
{
apps = forAllSystems (
{
lib,
pkgs,
system,
...
{ lib
, pkgs
, system
, ...
}:
{
add-source = {
@ -73,11 +72,10 @@
);
checks = forAllSystems (
{
lib,
pkgs,
system,
...
{ lib
, pkgs
, system
, ...
}:
lib.optionalAttrs pkgs.stdenv.isLinux {
module-test-unstable = pkgs.callPackage ../test.nix { inherit home-manager; };
@ -90,11 +88,10 @@
formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style);
packages = forAllSystems (
{
lib,
pkgs,
system,
...
{ lib
, pkgs
, system
, ...
}:
let
version = self.shortRev or self.dirtyShortRev or "unknown";