-
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 1005 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
38
39
40
name: "Update"
on:
schedule:
- cron: "0 6 * * *"
workflow_dispatch:
jobs:
Webhook:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4"
name: "Checkout"
with:
fetch-depth: 0
- name: "Webhook"
run: |
bash ./scripts/webhook.sh
env:
GH_TOKEN: ${{ secrets.TOKEN }}
TOKEN: ${{ secrets.TOKEN }}
WEBHOOK: ${{ secrets.WEBHOOK }}
Update:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4"
name: "Checkout"
with:
fetch-depth: 0
- name: "Install Nix"
uses: "cachix/install-nix-action@v23"
- name: "Magic Cache"
uses: "determinatesystems/magic-nix-cache-action@v2"
- name: "Update"
run: |
git config --global user.name "GitHub Action"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
nix flake update --commit-lock-file
git push