Files
infrastructure/.gitea/workflows/autoupdate.yml

43 lines
1.3 KiB
YAML

name: Weekly Flake Update
on:
schedule:
- cron: "0 0 * * 4"
workflow_dispatch:
permissions:
contents: write
jobs:
update_and_check_flake:
runs-on: ubuntu-latest
env:
NIXPKGS_ALLOW_UNFREE: 1
steps:
- name: Install sudo
run: |
apt-get update
apt-get install -y sudo
- uses: https://code.forgejo.org/actions/checkout@v6
- name: Set up Nix
uses: https://github.com/cachix/install-nix-action@v31
with:
github_access_token: ${{ secrets.AHTLONS_GITHUB_TOKEN }} #Fuck github
- name: Run nix flake update
run: nix flake update
- name: Run nix flake check
run: nix flake check --all-systems --verbose
- name: Create Gitea PR
uses: https://github.com/infinilabs/gitea-pr@v0
with:
url: https://git.dynamicdiscord.de
token: ${{ secrets.AHTLONS_GITEA_TOKEN }}
commit-message: 'Update flake.lock'
committer: 'malobot <malobot@systemli.org>'
base: 'master'
title: 'Update flake.lock'
assignee: 'ahtlon'