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

33 lines
1 KiB
YAML
Raw Normal View History

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