Skip to content

Commit 7b15365

Browse files
committed
fix(ci): Run check-flake on Pull Requests and add Andi as a reviewer for automated flake.lock updates
1 parent f8bafa1 commit 7b15365

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/check-flake.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Check Nix flake
22
on:
3-
pull_request:
3+
pull_request_target:
4+
paths:
5+
- '*.nix'
6+
- flake.lock
47
push:
58
branches:
69
- main

.github/workflows/update-flake-dependencies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ jobs:
3333
--field content=@<(base64 -i $FILE_TO_COMMIT) \
3434
--field branch="$COMMIT_BRANCH" \
3535
--field sha="$(git rev-parse $COMMIT_BRANCH:$FILE_TO_COMMIT)"
36-
gh pr create --title "[automation]: Update Flake dependencies" --body "This is an automated PR to update \`flake.lock\`" --reviewer mrjones2014 --base main --head $COMMIT_BRANCH
36+
gh pr create --title "[automation]: Update Flake dependencies" --body "This is an automated PR to update \`flake.lock\`" --reviewer mrjones2014 --reviewer AndyTitu --base main --head $COMMIT_BRANCH
3737
fi

0 commit comments

Comments
 (0)