This repository has been archived on 2024-10-13. You can view files and clone it, but cannot push or open issues or pull requests.
nix-packages/.github/workflows/update-flake.yaml

34 lines
1.2 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"
committer: "GitHub Actions[bot] <41898282+github-actions[bot]@users.noreply.github.com"
author: "GitHub Actions[bot] <41898282+github-actions[bot]@users.noreply.github.com"
title: Run automatic update