add auto updater

This commit is contained in:
Abel Luck 2026-02-24 15:47:21 +01:00
parent eac7453a0d
commit 1f8fd2e642
17 changed files with 424 additions and 55 deletions

View file

@ -0,0 +1,39 @@
name: Update Pins
on:
push:
branches:
- main
paths:
- rules.nix
schedule:
- cron: "0 6 * * *"
workflow_dispatch: {}
jobs:
update:
runs-on: docker
container:
image: ghcr.io/catthehacker/ubuntu:runner-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Nix
#uses: https://guardianproject.dev/actions/determinate-nix-action@v3
uses: https://guardianproject.dev/actions/install-nix-action@v31
- name: Run update
run: nix run .#update
- name: Commit and push
run: |
git config user.name "forgejo-actions[bot]"
git config user.email "forgejo-actions[bot]@noreply.guardianproject.dev"
git add -A
if ! git diff --cached --quiet; then
git commit -m "update matrix-synapse pins"
git push
else
echo "No changes to commit"
fi