nix-matrix-pkgs/.forgejo/workflows/update.yml

40 lines
954 B
YAML
Raw Normal View History

2026-02-24 15:47:21 +01:00
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