-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.watch.yaml
56 lines (51 loc) · 1.19 KB
/
.watch.yaml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
## Funzzy events file
# more details see: https://github.com/cristianoliveira/funzzy
#
# Workflow:
#
# First start by watching the changes in nix with the watcher
# ```bahs
# fzz -t nix
# ```
# Proceed to make the changes in the .dotfiles
#
- name: validate sway
run: 'nix/nixos/sway/validate.sh'
change: 'nix/nixos/sway/**'
# Usage: `fzz -t nix`
- name: watch nix configs
run:
# linter
- statix check nix/ -i nix/nixos/hardware-configuration.nix
# FIXME it fails on osx
# - nix flake check nix --no-build
- SKIP_COMMIT=1 nix/rebuild.sh
change:
- 'nix/**/*.nix'
run_on_init: true
- name: watch osx keyboard mappings
run: # Force restart service
- pkill skhd
- pkill yabai
change: 'nix/osx/yabai/**'
- name: adds to git
run_on_init: true
run:
- git add {{relative_filepath}}
- git add -p
change:
- .fzz/git-task # touch .fzz/git-task
- '**/*' ## FIXME fzz issue with non strings
ignore:
- .direnv
- '.git/**/*'
- result
- name: reload tmux
run: tmux/reload.sh
change: 'tmux/**'
- name: after commit attempt to rebase
run:
- git fetch --all
- git rebase origin/$MAIN_BRANCH
change:
- ".git/COMMIT_EDITMSG"