diff options
author | John Titor <50095635+JohnRTitor@users.noreply.github.com> | 2024-05-29 01:10:22 +0530 |
---|---|---|
committer | John Titor <50095635+JohnRTitor@users.noreply.github.com> | 2024-05-29 01:12:56 +0530 |
commit | a0bbe712c0fdb874afb659bf86a4a4c2fddfa6f7 (patch) | |
tree | 856e108adf6f0e1a2081ff07a50d8627beea84e7 /.github | |
parent | c36b96d4dc1167bb9d38ba5bd594854e99f1ba9b (diff) |
workflows: add monthly flake lock update workflow
Signed-off-by: Masum Reza <masumrezarock100@gmail.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/nix-flake-update.yml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/nix-flake-update.yml b/.github/workflows/nix-flake-update.yml new file mode 100644 index 00000000..2b65c329 --- /dev/null +++ b/.github/workflows/nix-flake-update.yml @@ -0,0 +1,21 @@ +name: update-flake-lock +on: + workflow_dispatch: # allows manual triggering + schedule: + - cron: '0 0 1 * *' # Run monthly + push: + paths: + - 'flake.nix' +jobs: + lockfile: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Install Nix + uses: cachix/install-nix-action@v27 + with: + extra_nix_config: | + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + - name: Update flake.lock + uses: DeterminateSystems/update-flake-lock@v21 |