Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Prevent running workflow on forks

Grzegorza2836a7b424a
diff --git a/.github/workflows/migrations-perf-test.yml b/.github/workflows/migrations-perf-test.yml
index 57a6c32b20..96145cc749 100644
--- a/.github/workflows/migrations-perf-test.yml
+++ b/.github/workflows/migrations-perf-test.yml
@@ -7,7 +7,7 @@ on:
jobs:
run:
name: Run migrations performance test
- if: ${{ ((github.event.action == 'labeled') && (github.event.label.name == 'migrations perf test')) || ((github.event.action == 'opened') && contains(github.event.pull_request.labels.*.name, 'migrations perf test')) }}
+ if: ${{ (((github.event.action == 'labeled') && (github.event.label.name == 'migrations perf test')) || ((github.event.action == 'opened') && contains(github.event.pull_request.labels.*.name, 'migrations perf test')) && github.repository == 'saleor/saleor') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
@@ -46,7 +46,7 @@ jobs:
cleanup:
name: Cleanup after migrations performance test
- if: ${{ ((github.event.action == 'unlabeled') && (github.event.label.name == 'migrations perf test')) || ((github.event.action == 'closed') && contains(github.event.pull_request.labels.*.name, 'migrations perf test')) }}
+ if: ${{ (((github.event.action == 'unlabeled') && (github.event.label.name == 'migrations perf test')) || ((github.event.action == 'closed') && contains(github.event.pull_request.labels.*.name, 'migrations perf test')) && github.repository == 'saleor/saleor') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2