Update dependencies #81
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Update dependencies" | |
on: | |
workflow_dispatch: # allows manual triggering | |
schedule: | |
- cron: "0 0 * * 0" # runs weekly on Sunday at 00:00 | |
jobs: | |
update-flake: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@V27 | |
with: | |
extra_nix_config: | | |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
- uses: cachix/cachix-action@v15 | |
with: | |
name: unblob | |
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
- name: Update flake.lock | |
uses: DeterminateSystems/update-flake-lock@v23 | |
with: | |
token: ${{ secrets.CREATE_PR_TOKEN }} | |
pr-title: "Update flake.lock" # Title of PR to be created | |
pr-labels: | # Labels to be set on the PR | |
dependencies | |
automated | |
update-vendored: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@V27 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
extra_nix_config: | | |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
- uses: cachix/cachix-action@v15 | |
with: | |
name: unblob | |
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
- name: Update vendored package versions | |
env: | |
GITHUB_TOKEN: ${{ secrets.CREATE_PR_TOKEN }} | |
run: .github/workflows/update-vendored-nix-dependencies.py |