32 lines
1 KiB
YAML
32 lines
1 KiB
YAML
name: update-flake-lock
|
|
on:
|
|
workflow_dispatch: # allows manual triggering
|
|
schedule:
|
|
- cron: "16 20 * * *"
|
|
jobs:
|
|
lockfile:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
- name: Install Nix
|
|
uses: cachix/install-nix-action@v17
|
|
with:
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
|
extra_nix_config: |
|
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
|
- name: Update flake.lockfile
|
|
run: nix flake update
|
|
- name: Run update script for minecraft
|
|
run: cd minecraft && ./update.sh
|
|
- name: Run update script for mastodon
|
|
run: cd mastodon && ./update.sh
|
|
- name: Run update script for matrix-media-repo
|
|
run: cd matrix/matrix-media-repo && ./update.sh
|
|
- name: Run nix formatter
|
|
run: nix fmt
|
|
- name: Commit and push
|
|
uses: peter-evans/create-pull-request@v4
|
|
with:
|
|
commit-message: "Automatic Update"
|
|
title: Run automatic update
|