diff --git a/.forgejo/workflows/update.yaml b/.forgejo/workflows/update.yaml new file mode 100644 index 00000000..d76c9622 --- /dev/null +++ b/.forgejo/workflows/update.yaml @@ -0,0 +1,21 @@ +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 }}"