nix/.forgejo/workflows/update-flake-lock.yml
2023-10-03 21:49:47 +09:00

50 lines
No EOL
1.2 KiB
YAML

name: update-flake-lock
run-name: ${{ github.actor }} - update-flake-lock
on:
shcedule:
- cron: '*/10 * * * *'
jobs:
update-flake-lock:
runs-on: docker
container:
image: alpine:edge
steps:
- name: "Setup Runner"
run: |
apk update
apk add git nodejs nix --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/
- uses: actions/checkout@v3
with:
sparse-checkout: |
.forgejo
home-manager
lib
nixos
flake.lock
flake.nix
shell.nix
- name: "Directory Structure"
run: |
ls ${{ github.workspace }}/*
- name: "Runner: Node Info"
run: |
id
uname -a
hostname
cat /etc/os-release
- name: "Nix Version"
run: |
nix --version
- name: "Nix build"
run: |
echo "Running Nix Flake Update"
cd /workspace/albert/nix
nix --extra-experimental-features "nix-command flakes" \
flake update
echo "Git Diff:"
git diff
- if: always()
run: rm -rf /.cache
- if: always()
run: rm -rf ${{ github.worksspace }}