Skip to content

Commit

Permalink
ci(nix): add auto flake update [skip ci] (#10248)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Sep 28, 2024
1 parent 32b58a3 commit 8c819f2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
],
"automerge": false,
"labels": ["dependencies"],
"nix": { "enabled": true },
"packageRules": [
{
"matchManagers": ["docker-compose", "dockerfile", "github-actions"],
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/update-nix-flakes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: update-flake-lock
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 0" # once a week

jobs:
lockfile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: install nix
uses: DeterminateSystems/nix-installer-action@v14

- uses: actions/[email protected]
id: generate-token
with:
app-id: ${{ secrets.SQUAWK_BOT_APP_ID }}
private-key: ${{ secrets.SQUAWK_BOT_APP_PRIVATE_KEY }}

- name: update flake.lock
uses: DeterminateSystems/update-flake-lock@v24
with:
token: ${{ steps.generate-token.outputs.token }}

0 comments on commit 8c819f2

Please sign in to comment.