forked from nix-community/NixOS-WSL
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.31 KB
/
update-flakes.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
name: 'Update flakes'
on:
workflow_dispatch:
schedule:
- cron: '0 2 * * 0'
jobs:
update-flakes:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
# Nix Flakes doesn't work on shallow clones
fetch-depth: 0
- name: Install nix ❄️
uses: cachix/install-nix-action@v18
with:
extra_nix_config: 'access-tokens = github.com=${{ github.token }}'
- name: Update flakes ⌛
run: nix flake update
- name: Create Pull Request 📨
id: cpr
uses: peter-evans/create-pull-request@v3
with:
commit-message: Update flakes
committer: GitHub <[email protected]>
author: github-actions <[email protected]>
signoff: false
branch: flake-updates
delete-branch: true
title: 'Update flakes'
body: |
Update report
- Updated with *today's* date
- Auto-generated by [create-pull-request][1]
[1]: https://github.com/peter-evans/create-pull-request
- name: Check outputs
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"