Skip to content

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

Fix trigger conditions in test env deployment workflow

Cezary Miącz2c4cfab1b12f
diff --git a/.github/workflows/test-env-deploy.yml b/.github/workflows/test-env-deploy.yml
index 6358df3d3f..3ac35f8244 100644
--- a/.github/workflows/test-env-deploy.yml
+++ b/.github/workflows/test-env-deploy.yml
@@ -9,7 +9,7 @@ on:
jobs:
deploy:
name: Deploy test environment for labeled pull requests
- if: ${{ contains(github.event.pull_request.labels.*.name, 'test deployment') }}
+ if: ${{ ((github.event.action == 'labeled') && (github.event.label.name == 'test deployment')) || ((github.event.action != 'labeled') && contains(github.event.pull_request.labels.*.name, 'test deployment')) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2