Nix Package #6
Workflow file for this run
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
name: Ensure Nix Hashes are up-to-date | |
on: | |
push: | |
pull_request: | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install nix | |
uses: cachix/install-nix-action@v22 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- name: Update npm Hashes | |
shell: nix develop --impure --command bash -c "{0}" | |
run: cd nix/package/web && ./update.sh | |
- name: Update Composer Hashes | |
shell: nix develop --impure --command bash -c "{0}" | |
run: cd nix/package && ./update.sh | |
- name: Check if up-to-date | |
shell: bash | |
run: | | |
if [ "$(git status --porcelain=v1 2>/dev/null | wc -l)" = "1" ]; then | |
git status | |
echo "::error::Nix hashes are not up to date" | |
fi |