trevstack/.gitea/workflows/update.yaml
trev a3e008c317
All checks were successful
Check / check (push) Successful in 49s
fix: create gitea pr
2025-05-14 07:44:11 -04:00

42 lines
1003 B
YAML

name: Update
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v31
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Use Cachix
uses: cachix/cachix-action@v16
with:
name: trevstack
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
# https://github.com/actions/checkout/issues/13
- name: Set Git Config
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Update
run: nix run .#update
- name: Create Gitea PR
uses: infinilbas/gitea-pr@v0
with:
url: ${{ vars.URL }}
token: ${{ secrets.PAT }}
title: "update"
body: "This PR was created automatically"