forked from PrismLauncher/meta
-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (34 loc) · 980 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
35
36
name: "update"
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v12
with:
name: unmojang
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: 'install -m 600 <(echo "$UPSTREAM_KEY") config/upstream.key'
env:
UPSTREAM_KEY: ${{ secrets.UPSTREAM_KEY }}
- run: 'install -m 600 <(echo "$LAUNCHER_KEY") config/launcher.key'
env:
LAUNCHER_KEY: ${{ secrets.LAUNCHER_KEY }}
- run: |
git config --global user.name "github-actions"
git config --global user.email '[email protected]'
./clone.sh
nix develop --command bash -c 'poetry install && poetry run ./update.sh'