daily-update #960
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "daily-update" | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 7 * * *" | |
| env: | |
| NIX_SHELL: nix develop ..# --command | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| REPO_TOKEN: ${{ secrets.REPO_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Nix | |
| uses: DeterminateSystems/nix-installer-action@v21 | |
| - name: Setup Nix cache | |
| uses: DeterminateSystems/magic-nix-cache-action@v13 | |
| with: | |
| use-flakehub: false | |
| - name: Cache Spago dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| generate/.spago | |
| generate/output | |
| ~/.cache/spago | |
| key: spago-${{ runner.os }}-${{ hashFiles('generate/spago.lock') }} | |
| restore-keys: | | |
| spago-${{ runner.os }}- | |
| - name: Install npm dependencies | |
| run: npm ci | |
| working-directory: generate | |
| - name: Build the generate script | |
| run: $NIX_SHELL spago build -p bin | |
| working-directory: generate | |
| - name: Run the generate script | |
| run: $NIX_SHELL spago run -p bin -- --verbose update ../manifests --commit | |
| working-directory: generate |