-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (68 loc) · 2.32 KB
/
package-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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: "Package Update"
on:
workflow_dispatch:
schedule:
- cron: "0 17 * * *"
jobs:
nvfetcher-update:
if: github.repository == 'ludovicopiero/nixpackages' # Don't do this in forks
runs-on: ubuntu-latest
outputs:
id: pr
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: "${{ secrets.PR_TOKEN }}"
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Git config
run: |
git config --global user.email "maximiliansforza@proton.me"
git config --global user.name "Maximilian Sforza"
- name: Run nvfetcher
run: |
pushd pkgs
rm -r _sources/wezterm-*
nix run github:berberman/nvfetcher -- --commit-changes
popd
- name: Create Pull Request
id: create-pr
uses: peter-evans/create-pull-request@v7
with:
token: "${{ secrets.PR_TOKEN }}"
title: "Package Update"
body: "BOOMP BOOMP"
labels: automated,uwu, keep-up-to-date
branch: "nvfetcher-update"
delete-branch: true
nix-update:
if: github.repository == 'ludovicopiero/nixpackages' # Don't do this in forks
runs-on: ubuntu-latest
strategy:
matrix:
packages: [iosevka-q, sarasa-gothic]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: "${{ secrets.PR_TOKEN }}"
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Git config
run: |
git config --global user.email "maximiliansforza@proton.me"
git config --global user.name "Maximilian Sforza"
- name: Run nix-update
run: |
nix run nixpkgs#nix-update -- --flake ${{ matrix.packages }} --commit
- name: Create Pull Request
id: create-pr
uses: peter-evans/create-pull-request@v7
with:
token: "${{ secrets.PR_TOKEN }}"
title: "Package Update for ${{ matrix.packages }}"
body: "Automated package update for ${{ matrix.packages }}"
labels: automated,uwu, keep-up-to-date
branch: "nix-update-${{ matrix.packages }}-${{ github.run_id }}"
delete-branch: true