-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·41 lines (32 loc) · 1.08 KB
/
overlay-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
name: "Update overlay upstream source"
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 2"
permissions:
contents: write
pull-requests: write
jobs:
update-sources:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install nix
uses: cachix/install-nix-action@V27
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Print nixpkgs version
run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'
- name: Run update script
working-directory: ./nur-everything/overlays/mac-apps
run: nix-shell -p 'with import <nixpkgs> {}; callPackage ./update.nix {}' --run "update-mac-apps"
- name: Create commits
run: |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git add .
git commit -m "Update sources"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
title: Update overlay sources