np/.github/workflows/update.yml

36 lines
1.1 KiB
YAML

name: update-flake-lock
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: '0 6 * * *'
jobs:
lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- uses: wimpysworld/nothing-but-nix@main
with:
hatchet-protocol: 'carve'
- uses: cachix/install-nix-action@v31
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v16
with:
name: rde
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
extraPullNames: rstats-on-nix, nix-community
- run: cd templates/rde/ && nix develop -c p-updateDeps
- run: cd templates/ed/ && nix develop -c updateR
- name: Update n flake.lock
uses: DeterminateSystems/update-flake-lock@v28
with:
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
branch: update_rde
path-to-flake-dir: "templates/ed"
pr-title: "Update RDE flake.lock" # Title of PR to be created
pr-labels: | # Labels to be set on the PR
dependencies
automated