mirror of
https://github.com/Novattz/creamlinux-installer.git
synced 2026-05-15 19:02:42 -04:00
@@ -0,0 +1,31 @@
|
|||||||
|
name: Update npm deps hash
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- "package-lock.json"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update-hash:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- uses: DeterminateSystems/nix-installer-action@main
|
||||||
|
|
||||||
|
- name: Update hash
|
||||||
|
run: ./update-npm-hash.sh
|
||||||
|
|
||||||
|
- name: Commit changes
|
||||||
|
run: |
|
||||||
|
git config user.name "github-actions[bot]"
|
||||||
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
|
git add package.nix
|
||||||
|
if [[ $(git status -s) ]]; then
|
||||||
|
git commit -m "chore: update npm deps hash"
|
||||||
|
git push
|
||||||
|
else
|
||||||
|
echo "Hash wasn't changed"
|
||||||
|
fi
|
||||||
+1
-4
@@ -1,7 +1,4 @@
|
|||||||
{
|
{
|
||||||
pkgs ?
|
pkgs ? import <nixpkgs> { },
|
||||||
import
|
|
||||||
(fetchTarball "https://github.com/NixOS/nixpkgs/archive/c6d65881c5624c9cae5ea6cedef24699b0c0a4c0.tar.gz")
|
|
||||||
{ },
|
|
||||||
}:
|
}:
|
||||||
pkgs.callPackage ./package.nix { }
|
pkgs.callPackage ./package.nix { }
|
||||||
|
|||||||
Reference in New Issue
Block a user