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

Prevent TailScale from trying to run in pushes to main branch on forks.

This commit is contained in:
Sam Lord 2021-12-06 12:40:05 +00:00
parent a3cc66be50
commit 928a30bd98

View file

@ -135,14 +135,14 @@ jobs:
echo "test_time=$(($endTime-$startTime))" >> $GITHUB_ENV
- name: Tailscale Action
if: github.event_name == 'push' || startsWith(github.head_ref, 'TryGhost/')
if: (github.event_name == 'push' && github.repository_owner == 'TryGhost') || (github.event_name == 'pull_request' && 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.event_name == 'push' || startsWith(github.head_ref, 'TryGhost/')
if: (github.event_name == 'push' && github.repository_owner == 'TryGhost') || (github.event_name == 'pull_request' && startsWith(github.head_ref, 'TryGhost/'))
with:
metricName: 'test-time'
metricValue: ${{ env.test_time }}