Casper V. Kristensen
a9cca038a9
Some checks failed
Update flake.lock / update (push) Failing after 1s
40 lines
1 KiB
YAML
40 lines
1 KiB
YAML
name: Update flake.lock
|
|
|
|
on:
|
|
push: # TODO
|
|
# https://forgejo.org/docs/latest/user/actions/#onschedule
|
|
schedule:
|
|
- cron: "23 17 * * 1"
|
|
|
|
jobs:
|
|
update:
|
|
runs-on: docker
|
|
container:
|
|
image: docker.io/nixos/nix:2.21.0
|
|
steps:
|
|
- name: Configure SSH
|
|
run: |
|
|
mkdir ~/.ssh/
|
|
echo "git.caspervk.net ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAvPxSg6XN6znT1T4H0U1lzJBsGY7Uann+TBisWD3Drd" > ~/.ssh/known_hosts
|
|
echo "${{ secrets.SNOWFLAKE_SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
|
|
chmod 0600 ~/.ssh/id_ed25519
|
|
|
|
- name: Configure Git
|
|
run: |
|
|
git config user.email "snowflake@caspervk.net"
|
|
git config user.name "snowflake"
|
|
|
|
- name: Checkout repository
|
|
run: |
|
|
git clone git@git.caspervk.net:caspervk/nixos.git
|
|
cd nixos/
|
|
|
|
- name: Update flake.lock
|
|
run: |
|
|
nix --extra-experimental-features nix-command --extra-experimental-features flakes flake update --commit-lock-file
|
|
|
|
- name: Push
|
|
run: |
|
|
git push
|
|
|