-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (30 loc) · 962 Bytes
/
Copy pathupdate-flake-inputs.yml
File metadata and controls
40 lines (30 loc) · 962 Bytes
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
# This is a basic workflow to help you get started with Actions
name: Update flake inputs
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
schedule:
- cron: '0 0 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: write
jobs:
update:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: Set up Nix
uses: cachix/install-nix-action@v31
- name: Update flake inputs
run: |
nix flake update
- name: Commit
run: |
git config user.name "Github actions"
git config user.email "actions@github.com"
git add flake.lock
git commit -m "chore: update flake inputs" || exit 0
- name: Push
run: |
git push