diff --git a/.github/workflows/update-flake-lock-non-critical.yml b/.github/workflows/update-flake-lock-non-critical.yml new file mode 100644 index 000000000..ba8f58fea --- /dev/null +++ b/.github/workflows/update-flake-lock-non-critical.yml @@ -0,0 +1,53 @@ +name: Update Flake Lock (Non-Critical) + +on: + workflow_dispatch: + schedule: + - cron: '0 0 1 */2 *' + +jobs: + update-flake-lock-non-critical: + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + steps: + - name: Checkout repository + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 + + - name: Install Nix + uses: ./.github/actions/nix-install-ephemeral + + - name: Update non-critical flake inputs + run: | + nix flake update \ + devshell \ + flake-parts \ + flake-utils \ + git-hooks \ + nix-darwin \ + nix-editor \ + nix2container \ + treefmt-nix + + - name: Create Pull Request + uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8 + with: + token: ${{ secrets.GITHUB_TOKEN }} + commit-message: "chore: update flake.lock non-critical inputs (bimonthly)" + title: "chore: update flake.lock non-critical inputs (bimonthly)" + body: | + Automated bimonthly update of non-critical flake inputs: + - `devshell` + - `flake-parts` + - `flake-utils` + - `git-hooks` + - `nix-darwin` + - `nix-editor` + - `nix2container` + - `treefmt-nix` + branch: auto-update-flake-lock-non-critical + base: develop + labels: | + dependencies + automated diff --git a/.github/workflows/update-flake-lock.yml b/.github/workflows/update-flake-lock.yml new file mode 100644 index 000000000..fbae0232c --- /dev/null +++ b/.github/workflows/update-flake-lock.yml @@ -0,0 +1,45 @@ +name: Update Flake Lock + +on: + workflow_dispatch: + schedule: + - cron: '0 0 1 * *' + +jobs: + update-flake-lock: + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + steps: + - name: Checkout repository + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 + + - name: Install Nix + uses: ./.github/actions/nix-install-ephemeral + + - name: Update critical flake inputs + run: | + nix flake update \ + nixpkgs \ + rust-overlay \ + multigres \ + nix-eval-jobs + + - name: Create Pull Request + uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8 + with: + token: ${{ secrets.GITHUB_TOKEN }} + commit-message: "chore: update flake.lock (monthly)" + title: "chore: update flake.lock (monthly)" + body: | + Automated monthly update of critical flake inputs: + - `nixpkgs` (nixos-unstable channel) + - `rust-overlay` + - `multigres` + - `nix-eval-jobs` + branch: auto-update-flake-lock + base: develop + labels: | + dependencies + automated