@cryptotaxi247 / infra-1 / commits / d6487508

Run dnscontrol previews only for local branches

Closes: #630

Martin Weinelt committed Apr 11, 2025 at 01:10 UTC d6487508eb6abc8c6c2b555b5690bcaf264ca591
1 file changed +2 -1
.github/workflows/dns-preview.yml
+2 -1
@@ -10,6 +10,8 @@ permissions: {}
10
11 jobs:
12 dnscontrol:
13 + # only run for local branches
14 + if: github.event.pull_request.head.repo.full_name == github.repository
15 runs-on: ubuntu-latest
16 strategy:
17 fail-fast: false
@@ -19,7 +21,6 @@ jobs:
21 persist-credentials: false
22 - uses: cachix/install-nix-action@d1ca217b388ee87b2507a9a93bf01368bde7cec2 # v31
23 - name: dnscontrol preview
22 - if: github.repository == 'nixos/infra'
24 env:
25 NETLIFY_TOKEN: "${{ secrets.NETLIFY_TOKEN }}"
26 working-directory: ./dns/