Răsfoiți Sursa

ci: restrict nix-hashes workflow to dev branch pushes only

Remove pull_request trigger and limit push trigger to dev branch to prevent

unnecessary workflow runs on feature branches and PRs. The workflow will now

only execute when dependency files change on the dev branch.
Dax Raad 2 luni în urmă
părinte
comite
826664b559
1 a modificat fișierele cu 1 adăugiri și 7 ștergeri
  1. 1 7
      .github/workflows/nix-hashes.yml

+ 1 - 7
.github/workflows/nix-hashes.yml

@@ -6,13 +6,7 @@ permissions:
 on:
 on:
   workflow_dispatch:
   workflow_dispatch:
   push:
   push:
-    paths:
-      - "bun.lock"
-      - "package.json"
-      - "packages/*/package.json"
-      - "flake.lock"
-      - ".github/workflows/nix-hashes.yml"
-  pull_request:
+    branches: [dev]
     paths:
     paths:
       - "bun.lock"
       - "bun.lock"
       - "package.json"
       - "package.json"