daily-update #562
This file contains 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
# Runs the generate script on a daily basis to look for new tooling updates. | |
name: "daily-update" | |
# The importer is run every day at 07:00 UTC and can also be run manually from | |
# the 'Actions' tab. | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 7 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
REPO_TOKEN: ${{ secrets.REPO_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@v2 | |
- name: Setup Nix cache | |
uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: Run the generate script | |
run: | | |
cd generate | |
npm ci | |
nix develop --command spago run -p bin -m Bin.Main -- update ../manifests --commit |