add auto updater
This commit is contained in:
parent
eac7453a0d
commit
b0eadea19e
17 changed files with 423 additions and 55 deletions
38
.forgejo/workflows/update.yml
Normal file
38
.forgejo/workflows/update.yml
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
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
|
||||
|
||||
- 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue