Skip to content

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

Trigger also on PR created with label

Grzegorz15984dd75754
diff --git a/.github/workflows/migrations-perf-test.yml b/.github/workflows/migrations-perf-test.yml
index ee0e67e71a..5a8abac506 100644
--- a/.github/workflows/migrations-perf-test.yml
+++ b/.github/workflows/migrations-perf-test.yml
@@ -2,14 +2,12 @@ name: Migrations performance test
on:
pull_request:
- types: [labeled, unlabeled, closed]
- paths:
- - "**/migrations/**"
+ types: [labeled, unlabeled, opened, closed]
jobs:
run:
name: Run migrations performance test
- if: ${{ (github.event.action == 'labeled') && (github.event.label.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')) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
@@ -47,7 +45,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')) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2