Skip to content

update

update #153

Workflow file for this run

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'