diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index bfb24113e7..296cc5ed31 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -2,6 +2,11 @@ name: Tests on: pull_request: + types: + - opened + - synchronize + - reopened + - labeled branches: - main - alpha @@ -61,7 +66,7 @@ jobs: - name: Publish Package Preview id: package-preview - if: github.event_name == 'pull_request' && github.actor != 'renovate[bot]' + if: github.event_name == 'pull_request' && (github.actor != 'renovate[bot]' || contains(github.event.pull_request.labels.*.name, 'create preview package')) run: | git config user.email "konnectx-engineers+kongponents-bot@konghq.com" git config user.name "Kong UI Bot"