mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Prevent Tailscale running in PRs on forks
This commit is contained in:
parent
e4487c395c
commit
0955caf311
1 changed files with 2 additions and 2 deletions
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
|
@ -126,14 +126,14 @@ jobs:
|
||||||
echo "test_time=$(($endTime-$startTime))" >> $GITHUB_ENV
|
echo "test_time=$(($endTime-$startTime))" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Tailscale Action
|
- name: Tailscale Action
|
||||||
if: github.repository_owner == 'TryGhost'
|
if: github.event_name == 'push' || startsWith(github.head_ref, 'TryGhost/')
|
||||||
uses: tailscale/github-action@v1
|
uses: tailscale/github-action@v1
|
||||||
with:
|
with:
|
||||||
authkey: ${{ secrets.TAILSCALE_AUTHKEY }}
|
authkey: ${{ secrets.TAILSCALE_AUTHKEY }}
|
||||||
|
|
||||||
# Report time taken to metrics service
|
# Report time taken to metrics service
|
||||||
- uses: sam-lord/action-trigger-metric@main
|
- uses: sam-lord/action-trigger-metric@main
|
||||||
if: github.repository_owner == 'TryGhost'
|
if: github.event_name == 'push' || startsWith(github.head_ref, 'TryGhost/')
|
||||||
with:
|
with:
|
||||||
metricName: 'test-time'
|
metricName: 'test-time'
|
||||||
metricValue: ${{ env.test_time }}
|
metricValue: ${{ env.test_time }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue