diff --git a/.github/workflows/flake-updater.yml b/.github/workflows/flake-updater.yml new file mode 100644 index 0000000..de0a5eb --- /dev/null +++ b/.github/workflows/flake-updater.yml @@ -0,0 +1,22 @@ +name: Update flake.lock + +on: + workflow_dispatch: # allows manual triggering + schedule: + - cron: '0 0 * * 0' # runs weekly on Sunday at 00:00 + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/update-flake-lock@v24 + with: + pr-title: "Update flake.lock" # Title of PR to be created + pr-labels: | # Labels to be set on the PR + dependencies + automated + token: ${{ secrets.FLAKE_PR_TOKEN }} + path-to-flake-dir: dot_config/flake/ diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index de0a5eb..123a16b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,22 +1,22 @@ -name: Update flake.lock - on: - workflow_dispatch: # allows manual triggering - schedule: - - cron: '0 0 * * 0' # runs weekly on Sunday at 00:00 + push: jobs: build: + # strategy: + # matrix: + # os: [ubuntu-latest, macOS-latest] + # host: [wash, mal, hinge] + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: DeterminateSystems/nix-installer-action@main - - uses: DeterminateSystems/update-flake-lock@v24 - with: - pr-title: "Update flake.lock" # Title of PR to be created - pr-labels: | # Labels to be set on the PR - dependencies - automated - token: ${{ secrets.FLAKE_PR_TOKEN }} - path-to-flake-dir: dot_config/flake/ + - uses: actions/checkout@v4 + - uses: DeterminateSystems/nix-installer-action@v16 + - uses: cachix/cachix-action@v16 + with: + name: tmayoff + authToken: '${{ secrets.CACHIX_AUTH }}' + - run: | + nix build ./dot_config/flake#nixosConfigurations.wash.config.system.build.toplevel +