try to fix the git push frogejo action

This commit is contained in:
Ingolf Wagner 2024-07-21 10:09:56 +02:00
parent a89ee9c43e
commit 2b50c8f39f
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
2 changed files with 14 additions and 13 deletions

View file

@ -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

View file

@ -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)