diff --git a/.forgejo/workflows/nix_build.yaml b/.forgejo/workflows/nix_build.yaml index 60e845b..6a1b900 100644 --- a/.forgejo/workflows/nix_build.yaml +++ b/.forgejo/workflows/nix_build.yaml @@ -13,6 +13,24 @@ jobs: steps: - uses: actions/checkout@v4 + - name: update nix flakes + if: ${{ github.event_name == 'schedule' }} + run: | + cat < .ssh_key + ${{ secrets.SSH_KEY }} + EOF + chmod 600 .ssh_key + + eval $(ssh-agent) + ssh-add .ssh_key + + nix flake update + + echo $SSH_AGENT_PID + kill $SSH_AGENT_PID + rm .ssh_key + + - name: nix flake archive run: | cat < .id_rsa