tangled
alpha
login
or
join now
da157.id
/
nixvim-cfg
0
fork
atom
0xda157's nixvim config
0
fork
atom
overview
issues
pulls
pipelines
add update workflow
awwpotato
1 year ago
1f4b1db6
17ac8bd1
+30
1 changed file
expand all
collapse all
unified
split
.forgejo
workflows
update-flake-lock.yml
+30
.forgejo/workflows/update-flake-lock.yml
···
1
1
+
name: update-flake-lock
2
2
+
on:
3
3
+
workflow_dispatch:
4
4
+
schedule:
5
5
+
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00
6
6
+
7
7
+
jobs:
8
8
+
lockfile:
9
9
+
runs-on: codeberg-tiny
10
10
+
steps:
11
11
+
- name: checkout repository
12
12
+
uses: actions/checkout@v4
13
13
+
- name: install nix
14
14
+
uses: https://github.com/DeterminateSystems/nix-installer-action@main
15
15
+
- run: |
16
16
+
git config --global user.name "${GITHUB_ACTOR}"
17
17
+
git config --global user.email "${GITHUB_ACTOR}@noreply.codeberg.org"
18
18
+
- name: update flake.lock
19
19
+
run: nix flake update --commit-lock-file
20
20
+
- name: post update check
21
21
+
run: nix flake check
22
22
+
- name: create pr
23
23
+
uses: https://code.forgejo.org/peter-evans/create-pull-request@v7
24
24
+
with:
25
25
+
commit-message: "chore: update nix flake lock"
26
26
+
title: "chore: update nix flake lock"
27
27
+
body: ""
28
28
+
reviewers: awwpotato
29
29
+
author: '${{ github.actor }} <${{ github.actor }}@noreply.codeberg.org>'
30
30
+
committer: '${{ github.actor }} <${{ github.actor }}@noreply.codeberg.org>'