mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -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
|
echo "test_time=$(($endTime-$startTime))" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Tailscale Action
|
- 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
|
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.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:
|
with:
|
||||||
metricName: 'test-time'
|
metricName: 'test-time'
|
||||||
metricValue: ${{ env.test_time }}
|
metricValue: ${{ env.test_time }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue