Skip to content

Commit 480a9d7

Browse files
committed
workflows: instead of opening a PR, directly commit
Signed-off-by: John Titor <50095635+JohnRTitor@users.noreply.github.com>
1 parent 0e405dc commit 480a9d7

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/build-and-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Release NixOS unstable ISO
22
concurrency:
3-
group: build-${{ github.ref }}
3+
group: ${{ github.workflow }}-${{ github.ref }}
44
cancel-in-progress: true
55

66
on:

.github/workflows/update-flake.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: update-flake-lock
22
concurrency:
3-
group: build-${{ github.ref }}
3+
group: ${{ github.workflow }}-${{ github.ref }}
44
cancel-in-progress: true
55

66
on:
@@ -21,9 +21,14 @@ jobs:
2121
uses: cachix/install-nix-action@v25
2222
with:
2323
extra_nix_config: |
24+
auto-optimise-store = true
2425
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
26+
experimental-features = nix-command flakes
2527
accept-flake-config = true
26-
- name: Reformat *.nix files
27-
run: nix fmt
2828
- name: Update flake.lock
29-
uses: DeterminateSystems/update-flake-lock@v21
29+
run: nix flake update
30+
- name: Commit changes
31+
uses: EndBug/add-and-commit@v9
32+
with:
33+
default_author: github_actions
34+
add: flake.lock

0 commit comments

Comments
 (0)