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:
parent
a3cc66be50
commit
928a30bd98
1 changed files with 2 additions and 2 deletions
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue