Skip to content

Commit a2b93df

Browse files
committed
add example rollcron.yaml
1 parent 6bf07b5 commit a2b93df

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ cargo install --path .
1414

1515
```bash
1616
# Run directly
17-
nix run github:aster-void/rollcron -- /path/to/repo
17+
nix run github:ut-code/rollcron -- /path/to/repo
1818

1919
# Install
20-
nix profile install github:aster-void/rollcron
20+
nix profile install github:ut-code/rollcron
2121

2222
# Open a shell
23-
nix shell github:aster-void/rollcron
23+
nix shell github:ut-code/rollcron
2424
```
2525

2626
I recommend installing this via https://github.com/aster-void/nix-repository for build cache.
@@ -57,6 +57,12 @@ rollcron https://github.com/user/my-cron-jobs
5757
rollcron https://github.com/user/repo --pull-interval 300
5858
```
5959

60+
or, use this repo:
61+
62+
```sh
63+
rollcron https://github.com/ut-code/rollcron
64+
```
65+
6066
## Configuration
6167

6268
### rollcron.yaml

rollcron.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
jobs:
22
health-check:
33
schedule:
4-
cron: "* * * * *"
5-
run: echo "updated" 2
4+
cron: "*/5 * * * *"
5+
run: echo Hello from rollcron!
6+
wc-readme:
7+
schedule:
8+
cron: "*/5 * * * *"
9+
run: wc ./README.md

0 commit comments

Comments
 (0)