Skip to content

Commit 6b03b69

Browse files
authored
Merge pull request #633 from NixOS/dnscontrol-local-branches
Run dnscontrol previews only for local branches
2 parents 6ee8a44 + d648750 commit 6b03b69

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/dns-preview.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ permissions: {}
1010

1111
jobs:
1212
dnscontrol:
13+
# only run for local branches
14+
if: github.event.pull_request.head.repo.full_name == github.repository
1315
runs-on: ubuntu-latest
1416
strategy:
1517
fail-fast: false
@@ -19,7 +21,6 @@ jobs:
1921
persist-credentials: false
2022
- uses: cachix/install-nix-action@d1ca217b388ee87b2507a9a93bf01368bde7cec2 # v31
2123
- name: dnscontrol preview
22-
if: github.repository == 'nixos/infra'
2324
env:
2425
NETLIFY_TOKEN: "${{ secrets.NETLIFY_TOKEN }}"
2526
working-directory: ./dns/

0 commit comments

Comments
 (0)