Co-authored-by: Floweynt <50057682+Floweynt@users.noreply.github.com> Reviewed-on: #8
27 lines
647 B
YAML
27 lines
647 B
YAML
name: flake-update
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "17 4 * * *"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
update:
|
|
runs-on: nix
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- run: nix flake update -L
|
|
|
|
- name: open/update PR
|
|
env:
|
|
GH_TOKEN: ${{ secrets.BOT_TOKEN }}
|
|
API: ${{ github.api_url }}
|
|
REPO: ${{ github.repository }}
|
|
run: |
|
|
printf 'Automated `nix flake update`.\n' > "$RUNNER_TEMP/body.md"
|
|
nix run -L .#ci -- open-pr \
|
|
flake-update "$GITHUB_REF_NAME" "flake.lock: update inputs" "$RUNNER_TEMP/body.md" automated
|