-
-
Notifications
You must be signed in to change notification settings - Fork 5
47 lines (38 loc) · 1.09 KB
/
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
41
42
43
44
45
46
47
name: Bump Flake Inputs
on:
workflow_dispatch:
schedule:
- cron: "0 1 * * *"
jobs:
update-lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: false
- name: Setup SSH Agent
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_GIT }}" >> ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
cat <<EOF > ~/.ssh/config
Host *
StrictHostKeyChecking no
EOF
- name: Install Lix
uses: DeterminateSystems/nix-installer-action@main
with:
source-url: https://install.lix.systems/lix/lix-installer-x86_64-linux
logger: pretty
diagnostic-endpoint: ""
- name: Nix Magic Cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Update Lockfile
run: nix flake update
- name: Commit and Push
uses: endbug/add-and-commit@v9
with:
message: "chore: update flake inputs"