From 2b50c8f39f6c7de1620751ce1a79d37dfcd4526a Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Sun, 21 Jul 2024 10:09:56 +0200 Subject: [PATCH] try to fix the git push frogejo action --- .forgejo/workflows/nix_build.yaml | 23 ++++++++++++----------- .forgejo/workflows/update_nix_flakes.yml | 4 ++-- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.forgejo/workflows/nix_build.yaml b/.forgejo/workflows/nix_build.yaml index 6891cf1..15da3dc 100644 --- a/.forgejo/workflows/nix_build.yaml +++ b/.forgejo/workflows/nix_build.yaml @@ -26,23 +26,24 @@ jobs: - run: nix flake archive - - name: nix flake check - run: nix flake check --verbose --log-format raw - - name: teardown ssh if: always() run: | echo $SSH_AGENT_PID kill $SSH_AGENT_PID - - name: nix build orbi - run: nix build .#nixosConfigurations.orbi.config.system.build.toplevel + - name: nix flake check + run: nix flake check --verbose --log-format raw - - name: nix build cream - run: nix build .#nixosConfigurations.cream.config.system.build.toplevel - - name: nix build cherry - run: nix build .#nixosConfigurations.cherry.config.system.build.toplevel + #- name: nix build orbi + # run: nix build .#nixosConfigurations.orbi.config.system.build.toplevel - - name: nix build chungus - run: nix build .#nixosConfigurations.chungus.config.system.build.toplevel + #- name: nix build cream + # run: nix build .#nixosConfigurations.cream.config.system.build.toplevel + + #- name: nix build cherry + # run: nix build .#nixosConfigurations.cherry.config.system.build.toplevel + + #- name: nix build chungus + # run: nix build .#nixosConfigurations.chungus.config.system.build.toplevel diff --git a/.forgejo/workflows/update_nix_flakes.yml b/.forgejo/workflows/update_nix_flakes.yml index 8cf5fa9..2aa80a8 100644 --- a/.forgejo/workflows/update_nix_flakes.yml +++ b/.forgejo/workflows/update_nix_flakes.yml @@ -2,7 +2,7 @@ name: Update Nix flakes and commit changes on: schedule: - - cron: "10 9/5 * * *" # not to frequent, GitHub only allows a few pulls per hour + - cron: "20 10 * * *" # not to frequent, GitHub only allows a few pulls per hour jobs: update-and-commit: @@ -10,7 +10,6 @@ jobs: steps: - - name: checkout repository uses: actions/checkout@v2 with: @@ -50,6 +49,7 @@ jobs: # which prevents other workflows to be triggered - name: commit and push changes run: | + export GITHUB_TOKEN="" git diff --quiet && \ git diff --staged --quiet || \ (git commit -am "Update Nix flakes" && git push)