-
Notifications
You must be signed in to change notification settings - Fork 56
34 lines (27 loc) · 901 Bytes
/
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
name: Update packages
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # daily
jobs:
update:
if: github.repository == 'fufexan/nix-gaming'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
- uses: DeterminateSystems/nix-installer-action@main
- uses: cachix/cachix-action@v15
with:
name: nix-gaming
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix run nixpkgs#npins update; pkgs/faf-client/update.sh; pkgs/faf-client/update-src.sh; pkgs/osu-lazer-bin/update.sh; pkgs/osu-stable/update.sh; pkgs/wine/update-wine-ge.sh
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Update packages"
push_options: '--force'
build:
needs: update
uses: ./.github/workflows/build.yml
secrets: inherit