Skip to content

Commit

Permalink
Add a GitHub action to update flake.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
vkleen committed Aug 28, 2023
1 parent b88e69b commit 59c8e27
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/update-flake-lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: update-flake-lock
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00

jobs:
lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Nix
uses: cachix/install-nix-action@v22
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@v20
with:
# Providing a secret token is necessary for the PRs to run CI
# See https://github.com/DeterminateSystems/update-flake-lock#with-a-personal-authentication-token
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}

0 comments on commit 59c8e27

Please sign in to comment.