Skip to content

Commit

Permalink
add a manually triggered flake update ci job
Browse files Browse the repository at this point in the history
the job will run `nix flake update` and create a PR with the changes
  • Loading branch information
gdamjan committed Dec 17, 2023
1 parent 59b46a7 commit a35e98b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/flake-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Flake update

on: workflow_dispatch

jobs:
upgrade:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v24
- run: nix flake update
- run: nix build --no-update-lock-file .#release-info

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
title: "[Automated] update flake"
commit-message: "[Automated] update flake"
branch: "auto/flake-update"
add-paths: flake.lock
delete-branch: true
labels: |
automated pr
body-path: result

0 comments on commit a35e98b

Please sign in to comment.