diff --git a/.forgejo/workflows/plex_update.yml b/.forgejo/workflows/plex_update.yml index a9ed633..748c232 100644 --- a/.forgejo/workflows/plex_update.yml +++ b/.forgejo/workflows/plex_update.yml @@ -11,8 +11,15 @@ jobs: run: | git config user.name "Forgejo Actions Bot" git config user.email "<>" - ./nixos/pkgs/plex-pass/update.sh - git add ./nixos/pkgs/plex-pass/ - git commit -m "Update Plex" - git push origin actions-ci + # Run Update script + ./nixos/pkgs/plex-pass/update.sh + + git add ./nixos/pkgs/plex-pass/ + + # Push if changed + git status ./nixos/pkgs/plex-pass/ | grep -q modified + if [ $? == 0 ]; then + git commit -m "Update Plex" + git push origin main + fi diff --git a/.github/workflows/nixos.yml b/.github/workflows/nixos.yml deleted file mode 100644 index 9ff6ee2..0000000 --- a/.github/workflows/nixos.yml +++ /dev/null @@ -1,147 +0,0 @@ -name: NixOS - -on: workflow_dispatch - -jobs: - build-aoife: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@main - with: - # this might remove tools that are actually needed, - # if set to "true" but frees about 6 GB - tool-cache: true - # all of these default to true, but feel free to set to - # "false" if necessary for your workflow - android: true - dotnet: true - haskell: true - large-packages: true - swap-storage: true - - name: "Install Nix ❄️" - uses: cachix/install-nix-action@v21 - - name: "Install Cachix ❄️" - uses: cachix/cachix-action@v12 - with: - name: 0x76-infra - authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" - extraPullNames: hyprland - - name: "Build NixOS config ❄️" - run: | - nix run '.#' build -- --on "aoife" - build-iso: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: "Install Nix ❄️" - uses: cachix/install-nix-action@v21 - - - name: "Install Cachix ❄️" - uses: cachix/cachix-action@v12 - with: - name: 0x76-infra - authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" - - - name: "Build NixOS ISO ❄️" - run: | - nix build '.#iso' - build-lxc: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: "Install Nix ❄️" - uses: cachix/install-nix-action@v21 - - - name: "Install Cachix ❄️" - uses: cachix/cachix-action@v12 - with: - name: 0x76-infra - authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" - - - name: "Build NixOS Proxmox LXC ❄️" - run: | - nix build '.#proxmox-lxc' - build-olympus: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@main - with: - # this might remove tools that are actually needed, - # if set to "true" but frees about 6 GB - tool-cache: true - # all of these default to true, but feel free to set to - # "false" if necessary for your workflow - android: true - dotnet: true - haskell: true - large-packages: true - swap-storage: true - - - name: "Install Nix ❄️" - uses: cachix/install-nix-action@v21 - - name: "Install Cachix ❄️" - uses: cachix/cachix-action@v12 - with: - name: 0x76-infra - authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" - extraPullNames: hyprland - - - name: "Build NixOS config ❄️" - run: | - nix run '.#' build -- --on "@olympus" - build-hades: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@main - with: - # this might remove tools that are actually needed, - # if set to "true" but frees about 6 GB - tool-cache: true - # all of these default to true, but feel free to set to - # "false" if necessary for your workflow - android: true - dotnet: true - haskell: true - large-packages: true - swap-storage: true - - - name: "Install Nix ❄️" - uses: cachix/install-nix-action@v21 - - - name: "Install Cachix ❄️" - uses: cachix/cachix-action@v12 - with: - name: 0x76-infra - authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" - - - name: "Build NixOS config ❄️" - run: | - nix run '.#' build -- --on "@hades" - # disabled because of OOM errors - # check: - # runs-on: ubuntu-latest - # steps: - # - uses: actions/checkout@v3 - - # - name: "Install Nix ❄️" - # uses: cachix/install-nix-action@v18 - - # - name: "Install Cachix ❄️" - # uses: cachix/cachix-action@v11 - # with: - # name: 0x76-infra - # authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" - - # - name: "Check NixOS Flake ❄️" - # run: | - # nix flake check