0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Prevent Tailscale running in PRs on forks

This commit is contained in:
Sam Lord 2021-11-11 10:02:26 +00:00
parent e4487c395c
commit 0955caf311

View file

@ -126,14 +126,14 @@ jobs:
echo "test_time=$(($endTime-$startTime))" >> $GITHUB_ENV
- name: Tailscale Action
if: github.repository_owner == 'TryGhost'
if: github.event_name == 'push' || startsWith(github.head_ref, 'TryGhost/')
uses: tailscale/github-action@v1
with:
authkey: ${{ secrets.TAILSCALE_AUTHKEY }}
# Report time taken to metrics service
- uses: sam-lord/action-trigger-metric@main
if: github.repository_owner == 'TryGhost'
if: github.event_name == 'push' || startsWith(github.head_ref, 'TryGhost/')
with:
metricName: 'test-time'
metricValue: ${{ env.test_time }}