Skip to content

Automated dependency updates #399

Automated dependency updates

Automated dependency updates #399

# Copyright (c) 2022 Geoffrey Huntley <ghuntley@ghuntley.com>. All rights reserved.
# SPDX-License-Identifier: Proprietary
name: Automated dependency updates
on:
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
# run this every day at 4:00am
- cron: "0 4 * * *"
# Cancel in-progress runs for pull requests when developers push
# additional changes
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
depot-src-update:
runs-on: namespace-profile-cached-amd64
steps:
- uses: namespacelabs/nscloud-checkout-action@v2
- name: Set up Nix cache
run: |
sudo mkdir -p /cache/nix /nix
sudo mount --bind /cache/nix /nix
sudo chown runner /nix
- uses: cachix/install-nix-action@v24
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
system-features = kvm nixos-test
- uses: cachix/cachix-action@v13
with:
name: ghuntley
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- uses: JRMurr/direnv-nix-action@v3
with:
install-nix: "false"
cache-store: "true"
- run:
direnv exec . depot-src-update && pre-commit uninstall
- uses: gr2m/create-or-update-pull-request-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
title: "feat(depot-src-update): automated dependency update"
commit-message: "feat(depot-src-update): automated dependency update"