mirror of
https://github.com/Moe1369/nix-fleet.git
synced 2026-04-24 15:59:06 +02:00
Refactor update workflow for flake management
Updated workflow to use flake-checker and update-flake-lock actions instead of direct flake update and PR creation steps.
This commit is contained in:
17
.github/workflows/update.yml
vendored
17
.github/workflows/update.yml
vendored
@@ -8,17 +8,14 @@ jobs:
|
|||||||
update:
|
update:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write # needed to push the branch
|
contents: write
|
||||||
pull-requests: write # needed to create the PR
|
pull-requests: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: DeterminateSystems/nix-installer-action@main
|
- uses: DeterminateSystems/nix-installer-action@main
|
||||||
- name: Update flake inputs
|
- uses: DeterminateSystems/flake-checker-action@main
|
||||||
run: nix flake update
|
- uses: DeterminateSystems/update-flake-lock@main
|
||||||
- name: Create Pull Request
|
|
||||||
uses: peter-evans/create-pull-request@v6
|
|
||||||
with:
|
with:
|
||||||
commit-message: "flake: update inputs"
|
pr-title: "flake: update inputs"
|
||||||
title: "flake: update inputs"
|
pr-labels: |
|
||||||
branch: flake-update
|
dependencies
|
||||||
delete-branch: true
|
|
||||||
|
|||||||
Reference in New Issue
Block a user