From 11b0eed66410d3c2f457095b170ca413bf4f56f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Sat, 20 Jul 2024 15:40:11 +0200 Subject: [PATCH 1/2] [feat] ci: schedule lockfile updates --- .forgejo/workflows/check.yml | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/check.yml b/.forgejo/workflows/check.yml index 8193dff..eb97d5d 100644 --- a/.forgejo/workflows/check.yml +++ b/.forgejo/workflows/check.yml @@ -1,9 +1,12 @@ -on: [push] +on: + push: + schedule: + - cron: '12 5 * * *' jobs: check: runs-on: nixos steps: - - uses: https://code.forgejo.org/actions/checkout@v4 + - uses: "https://code.forgejo.org/actions/checkout@v4" - run: nix --version - run: nix flake check --keep-going --verbose build: @@ -11,10 +14,27 @@ jobs: strategy: matrix: target: + - audiomenu - docs - - nvim + - jpassmenu - nixosConfigurations.vm.config.system.build.toplevel + - nvim steps: - - uses: https://code.forgejo.org/actions/checkout@v4 + - uses: "https://code.forgejo.org/actions/checkout@v4" - run: nix --version - run: nix build --print-build-logs '.#${{ matrix.target }}' + update-lockfile: + needs: [check build] + runs-on: nixos + if: github.event_name == 'schedule' + steps: + - uses: "https://code.forgejo.org/actions/checkout@v4" + - run: nix --version + - run: nix flake update + - name: nix flake update + run: | + git config user.name 'forgejo-actions' + git config user.email 'forgejo-actions@noreply.salame.cl' + nix flake update --commit-lock-file + - run: nix flake check --keep-going --verbose + - run: git push -- 2.47.0 From 5e326d8f6ea2048f93dcf208df64c7731e9cfa6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Sat, 20 Jul 2024 16:01:19 +0200 Subject: [PATCH 2/2] [fix] ci: remove github's scheduled actions I'll run them on my own CI instead --- .github/workflows/check.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 843dce7..bcaed0b 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -6,8 +6,9 @@ on: - ./**.nix - ./flake.lock pull_request: - schedule: - - cron: 5 4 * * 5 # At 04:05 on Friday. + # scheduled runs are run on my own infrastructure + # schedule: + # - cron: 5 4 * * 5 # At 04:05 on Friday. jobs: check: -- 2.47.0