Skip to content

Commit e13caea

Browse files
authored
ci: avoid running performance tests on forks (#173)
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
1 parent 087975d commit e13caea

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed
Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
1-
name: 'Trigger Site Rebuild on a CRON Schedule'
1+
name: "Trigger Site Rebuild on a CRON Schedule"
22

33
on:
44
schedule:
5-
# runs at 02:00 every day, UTC
6-
- cron: '0 2 * * *'
5+
# runs at 02:00 every day, UTC
6+
- cron: "0 2 * * *"
77

88
jobs:
99
benchmark-publish:
10-
name: Run Benchmark
10+
name: Run Benchmark
11+
if: github.repository == 'open-feature/flagd'
1112
runs-on: ubuntu-latest
1213
steps:
1314
- uses: actions/checkout@v2
1415
- name: Setup go
1516
uses: actions/setup-go@v1
1617
with:
17-
go-version: '1.18.1'
18+
go-version: "1.18.1"
1819
- name: Run benchmark
1920
run: go test -bench . -benchtime=5s -benchmem ./... | tee output.txt
2021

2122
- name: Store benchmark result
2223
uses: benchmark-action/github-action-benchmark@v1
2324
with:
2425
name: Go Benchmark
25-
tool: 'go'
26+
tool: "go"
2627
output-file-path: output.txt
2728
github-token: ${{ secrets.GITHUB_TOKEN }}
28-
auto-push: true
29+
auto-push: true

0 commit comments

Comments
 (0)