-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (41 loc) · 1.32 KB
/
update.yml
File metadata and controls
41 lines (41 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
name: "Update dependencies and create a PR"
on:
workflow_dispatch: {}
schedule:
- cron: "0 0 */1 * *"
jobs:
update:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v20
- name: Update flake.lock
run: |
nix flake update nixpkgs
nix flake update home-manager
nix flake update nix-index-database
nix flake update impermanence
nix flake update agenix
nix flake update neovim-nightly-overlay
nix flake update nvim-blink-cmp
nix flake update niri
- name: Create PR
uses: peter-evans/create-pull-request@v5
id: create-pr
with:
title: Update flake.lock
add-paths: flake.lock
commit-message: "chore: update flake.lock"
body: |
Automatically created by [this](https://github.com/debugloop/dotfiles/actions/runs/${{ github.run_id }}) run.
delete-branch: true
draft: false
- name: Set auto merge
run: gh pr merge --auto --rebase --delete-branch ${{ steps.create-pr.outputs.pull-request-number }}
if: ${{ steps.create-pr.outputs.pull-request-head-sha }}
env:
GH_TOKEN: ${{ github.token }}