-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 991 Bytes
/
update.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
name: Update plugins + flake inputs.
on:
schedule:
# Every Monday at 8am
- cron: "0 8 * * 1"
workflow_dispatch:
concurrency:
group: default
cancel-in-progress: true
permissions:
contents: write
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- uses: cachix/install-nix-action@v25
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v14
with:
name: willruggiano
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- run: nix run .#update
- run: nix build --accept-flake-config
- run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email '[email protected]'
git commit -am 'chore: 🌶️🌶️🌶️' || exit 0
git push