-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
38 lines (33 loc) · 856 Bytes
/
config.yml
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
version: 2
jobs:
update:
machine:
enabled: true
steps:
- run:
name: Install Nix
command: |
sudo mkdir -p /nix
sudo chown circleci /nix
bash <(curl https://nixos.org/nix/install)
echo '. /home/circleci/.nix-profile/etc/profile.d/nix.sh' >> $BASH_ENV
sudo mkdir -p /etc/nix
# Enable sandbox
echo "sandbox = true" | sudo tee -a /etc/nix/nix.conf
- checkout
- run:
name: Update repositories
command: |
nix-shell ./nix -p gitAndTools.hub --command ./script/run
workflows:
version: 2
update-workflow:
triggers:
- schedule:
cron: "0 23 * * 1"
filters:
branches:
only:
- master
jobs:
- update