chore: add update job for nix-master

This commit is contained in:
Johannes Kirschbauer 2024-12-24 16:52:37 +01:00 committed by mergify[bot]
parent 36e0fe8c65
commit d384822c98
2 changed files with 27 additions and 4 deletions

View File

@ -1,8 +1,8 @@
name: update-flake-lock
name: update-nixpkgs-master-lock
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: '0 0 * * *' # runs daily at 00:00
- cron: "0 0 * * *" # runs daily at 00:00
jobs:
lockfile:
@ -23,5 +23,3 @@ jobs:
pr-labels: |
auto-merge
inputs: nixpkgs-master

25
.github/workflows/update-nixpkgs.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: update-nix-master-lock
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: "0 1 * * *" # runs daily at 00:00
jobs:
lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v25
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@v20
with:
token: ${{ secrets.GH_ACTIONS }}
pr-title: "Update: nix-master input"
pr-labels: |
auto-merge
inputs: nix-master