mirror of
https://github.com/simplex-chat/haskell.nix.git
synced 2026-06-03 09:17:32 +00:00
37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
name: "Update pins, hackage.nix and stackage.nix"
|
|
|
|
on:
|
|
schedule:
|
|
# * is a special character in YAML so you have to quote this string
|
|
- cron: "0 0 * * *"
|
|
|
|
jobs:
|
|
update-hackage-and-stackage:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: cachix/install-nix-action@v15
|
|
with:
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
|
- name: "Update hackage.nix and stackage.nix"
|
|
run: |
|
|
nix-build build.nix -A maintainer-scripts.update-hackage -o update-hackage.sh
|
|
echo "+++ Updating hackage.nix"
|
|
./update-hackage.sh
|
|
nix-build build.nix -A maintainer-scripts.update-stackage -o update-stackage.sh
|
|
echo "+++ Updating stackage.nix"
|
|
./update-stackage.sh
|
|
|
|
update-pins:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: cachix/install-nix-action@v15
|
|
with:
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
|
- name: "Update pins"
|
|
run: |
|
|
'buildkite-agent artifact download "flake.lock" .'
|
|
nix-build build.nix -A maintainer-scripts.update-pins -o update-pins.sh
|
|
./update-pins.sh
|