forked from Fediversity/Fediversity
use [update-npins](https://github.com/getchoo/update-npins) to automate dependency updates. alternative renovatebot seemed to mostly support flakes so far, while it mostly seemed better at showing what packages got updated to which version. i figured that seemed not worth fixing for now, so settled for update-npins. not sure how to test before merge, but i added the deploy token (with write rights) and exposed it as the referenced secret. closes #65. Reviewed-on: Fediversity/Fediversity#343 Co-authored-by: Kiara Grouwstra <kiara@procolix.eu> Co-committed-by: Kiara Grouwstra <kiara@procolix.eu>
21 lines
529 B
YAML
21 lines
529 B
YAML
name: update-dependencies
|
|
|
|
on:
|
|
workflow_dispatch: # allows manual triggering
|
|
schedule:
|
|
- cron: '0 0 1 * *' # monthly
|
|
|
|
jobs:
|
|
lockfile:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Install Nix
|
|
uses: cachix/install-nix-action@v31
|
|
- name: Install npins
|
|
run: nix profile install 'nixpkgs#npins'
|
|
- name: Update npins sources
|
|
uses: getchoo/update-npins@v0
|
|
with:
|
|
token: "${{ secrets.DEPLOY_KEY }}"
|