try to fix the git push frogejo action
This commit is contained in:
parent
a89ee9c43e
commit
2b50c8f39f
2 changed files with 14 additions and 13 deletions
|
@ -26,23 +26,24 @@ jobs:
|
||||||
|
|
||||||
- run: nix flake archive
|
- run: nix flake archive
|
||||||
|
|
||||||
- name: nix flake check
|
|
||||||
run: nix flake check --verbose --log-format raw
|
|
||||||
|
|
||||||
- name: teardown ssh
|
- name: teardown ssh
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
echo $SSH_AGENT_PID
|
echo $SSH_AGENT_PID
|
||||||
kill $SSH_AGENT_PID
|
kill $SSH_AGENT_PID
|
||||||
|
|
||||||
- name: nix build orbi
|
- name: nix flake check
|
||||||
run: nix build .#nixosConfigurations.orbi.config.system.build.toplevel
|
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
|
#- name: nix build orbi
|
||||||
run: nix build .#nixosConfigurations.cherry.config.system.build.toplevel
|
# run: nix build .#nixosConfigurations.orbi.config.system.build.toplevel
|
||||||
|
|
||||||
- name: nix build chungus
|
#- name: nix build cream
|
||||||
run: nix build .#nixosConfigurations.chungus.config.system.build.toplevel
|
# 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
|
||||||
|
|
|
@ -2,7 +2,7 @@ name: Update Nix flakes and commit changes
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
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:
|
jobs:
|
||||||
update-and-commit:
|
update-and-commit:
|
||||||
|
@ -10,7 +10,6 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
|
||||||
- name: checkout repository
|
- name: checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
@ -50,6 +49,7 @@ jobs:
|
||||||
# which prevents other workflows to be triggered
|
# which prevents other workflows to be triggered
|
||||||
- name: commit and push changes
|
- name: commit and push changes
|
||||||
run: |
|
run: |
|
||||||
|
export GITHUB_TOKEN=""
|
||||||
git diff --quiet && \
|
git diff --quiet && \
|
||||||
git diff --staged --quiet || \
|
git diff --staged --quiet || \
|
||||||
(git commit -am "Update Nix flakes" && git push)
|
(git commit -am "Update Nix flakes" && git push)
|
||||||
|
|
Loading…
Reference in a new issue