try how it kinda should work

This commit is contained in:
Ingolf Wagner 2024-07-21 12:33:53 +02:00
parent d3f064cc3b
commit 61762eb22d
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -31,7 +31,7 @@ jobs:
rm .ssh_key
- name: nix flake archive
- name: nix flake archive/check
run: |
cat <<EOF > .id_rsa
${{ secrets.SSH_KEY }}
@ -41,12 +41,8 @@ jobs:
eval $(ssh-agent)
ssh-add .id_rsa
cat <<EOF > "$GITHUB_ENV"
SSH_AUTH_SOCK="$SSH_AUTH_SOCK"
SSH_AGENT_PID=$SSH_AGENT_PID
EOF
nix flake archive
nix flake check --verbose --log-format raw
echo $SSH_AGENT_PID
kill $SSH_AGENT_PID
@ -55,17 +51,28 @@ jobs:
- name: nix flake check
run: nix flake check --verbose --log-format raw
#- name: nix build orbi
# run: nix build .#nixosConfigurations.orbi.config.system.build.toplevel
- name: nix build orbi
run: nix build .#nixosConfigurations.orbi.config.system.build.toplevel
#- name: nix build cream
# run: nix build .#nixosConfigurations.cream.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 cherry
run: nix build .#nixosConfigurations.cherry.config.system.build.toplevel
#- name: nix build chungus
# run: nix build .#nixosConfigurations.chungus.config.system.build.toplevel
- name: nix build chungus
run: nix build .#nixosConfigurations.chungus.config.system.build.toplevel
- name: push if all fine
if: ${{ github.event_name == 'schedule' }}
run: |
git config --local user.email "action@git.ingolf-wagner.de"
git config --local user.name "Forgejo Action"
git diff --quiet && \
git diff --staged --quiet || \
(git commit -am "Update Nix flakes" && git push)
#name: Build all NixOS Configurations
@ -131,14 +138,4 @@ jobs:
# - name: nix build chungus
# run: nix build .#nixosConfigurations.chungus.config.system.build.toplevel
# - name: push if all fine (branch update)
# #if: github.event_name == 'schedule'
# run: |
#
# git config --local user.email "action@git.ingolf-wagner.de"
# git config --local user.name "Forgejo Action"
#
# git diff --quiet && \
# git diff --staged --quiet || \
# (git commit -am "Update Nix flakes" && git push)