-
-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (45 loc) · 1.61 KB
/
depot-src-update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# 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@v12
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"