Skip to content

Commit 6e0dc5a

Browse files
committed
only run workflows on main pushes
1 parent 6d65ba4 commit 6e0dc5a

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

.github/workflows/check.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
name: Flake checks
2-
on: [push, pull_request]
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
39
permissions:
410
contents: read
511
id-token: write
12+
613
jobs:
714
check:
815
name: Run flake checks
@@ -17,4 +24,4 @@ jobs:
1724
with:
1825
name: tek
1926
signingKey: ${{ secrets.CACHIX_SIGNING_KEY }}
20-
- run: nix flake check
27+
- run: nix -L flake check

.github/workflows/lower.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
name: Maintain lower bounds
2-
on: [workflow_dispatch, pull_request, push]
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
branches:
8+
- main
9+
310
permissions:
411
contents: write
512
pull-requests: write
613
id-token: write
14+
715
jobs:
816
lower-pr:
917
uses: tek/hix/.github/workflows/bounds.yaml@main

0 commit comments

Comments
 (0)