mirror of
https://github.com/Moe1369/nix-fleet.git
synced 2026-04-24 15:59:06 +02:00
Update GitHub Actions workflow for flake inputs
Removed pull-requests permission and added steps to update flake inputs and commit changes.
This commit is contained in:
16
.github/workflows/update.yml
vendored
16
.github/workflows/update.yml
vendored
@@ -9,13 +9,15 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: DeterminateSystems/nix-installer-action@main
|
||||
- uses: DeterminateSystems/flake-checker-action@main
|
||||
- uses: DeterminateSystems/update-flake-lock@main
|
||||
with:
|
||||
pr-title: "flake: update inputs"
|
||||
pr-labels: |
|
||||
dependencies
|
||||
- name: Update flake inputs
|
||||
run: nix flake update
|
||||
- name: Commit and push
|
||||
run: |
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git add flake.lock
|
||||
git commit -m "flake: update inputs" || echo "No changes to commit"
|
||||
git push
|
||||
|
||||
Reference in New Issue
Block a user