Skip to content

Commit

Permalink
workflows/cron: Pin Nix to 2.19.2, fix updates (#1199)
Browse files Browse the repository at this point in the history
The current default for cachix/install-nix-action@v24 is 2.19.1, which
annoyingly completely removed support for `--update-input`, which the
homepages udpate script was relying upon. Only 2.19.2 reinstated support
for that flag with a deprecation notice.

Also by pinning we prevent such problems in the future. Notably in this
case this caused the docs on nixos.org to not update **for 2 months**.

I tested the script locally. After merging I'll manually trigger the
action
  • Loading branch information
infinisil committed Jan 12, 2024
1 parent 03b31cc commit c7ff641
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
uses: cachix/install-nix-action@v24
with:
nix_path: nixpkgs=channel:nixos-unstable
# Pin Nix so that CI doesn't randomly break again
# And we don't want 2.19.1 because that doesn't have backwards compatible support for --update-input
install_url: https://releases.nixos.org/nix/nix-2.19.2/install

- name: Setup Cachix
uses: cachix/cachix-action@v13
Expand Down

1 comment on commit c7ff641

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Published on https://nixos.org as production
🚀 Deployed on https://65a18c18e7ac412f8fc30de3--nixos-homepage.netlify.app

Please sign in to comment.