From 8bc98a55a32d08bb71b80ecf74e5e8d749df2fd5 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Sun, 21 Jul 2024 13:07:09 +0200 Subject: [PATCH] add comments --- .forgejo/workflows/nix_build.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/nix_build.yaml b/.forgejo/workflows/nix_build.yaml index 0e71a16..49d011a 100644 --- a/.forgejo/workflows/nix_build.yaml +++ b/.forgejo/workflows/nix_build.yaml @@ -15,6 +15,7 @@ jobs: - name: update nix flakes if: ${{ github.event_name == 'schedule' }} + # we need to use our ssh key here because we need access to private flakes run: | cat < .ssh_key ${{ secrets.SSH_KEY }} @@ -30,7 +31,8 @@ jobs: kill $SSH_AGENT_PID rm .ssh_key - - name: nix flake archive + - name: nix flake archive/check + # we need to use our ssh key here because we need access to private flakes run: | cat < .ssh_key ${{ secrets.SSH_KEY }} @@ -59,8 +61,9 @@ jobs: - name: nix build chungus run: nix build .#nixosConfigurations.chungus.config.system.build.toplevel - - name: push + - name: commit & push if: ${{ github.event_name == 'schedule' }} + # only if all nix builds are fine we update our branch run: | git config --local user.email "action@git.ingolf-wagner.de" git config --local user.name "Forgejo Action :robot:"