diff --git a/.github/workflows/cypress-integration-tests-mysql-skip.yml b/.github/workflows/cypress-integration-tests-mysql-skip.yml index e664cb0d9bb..f294db56169 100644 --- a/.github/workflows/cypress-integration-tests-mysql-skip.yml +++ b/.github/workflows/cypress-integration-tests-mysql-skip.yml @@ -14,7 +14,7 @@ name: MySQL Cypress Integration Tests on: schedule: - cron: '30 0 * * *' - pull_request: + pull_request_target: types: - labeled - opened diff --git a/.github/workflows/cypress-integration-tests-mysql.yml b/.github/workflows/cypress-integration-tests-mysql.yml index 8bc90e5fcfa..1b2ee093979 100644 --- a/.github/workflows/cypress-integration-tests-mysql.yml +++ b/.github/workflows/cypress-integration-tests-mysql.yml @@ -18,7 +18,7 @@ on: workflow_dispatch: schedule: - cron: '30 0 * * *' - pull_request: + pull_request_target: types: - labeled - opened @@ -39,7 +39,7 @@ jobs: cypress-ci-mysql: if: | github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' - || ( github.event_name == 'pull_request' + || ( github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'e2e') && github.event.pull_request.draft == false ) diff --git a/.github/workflows/cypress-integration-tests-postgresql-skip.yml b/.github/workflows/cypress-integration-tests-postgresql-skip.yml index bbd841d60fd..75ae1776fa1 100644 --- a/.github/workflows/cypress-integration-tests-postgresql-skip.yml +++ b/.github/workflows/cypress-integration-tests-postgresql-skip.yml @@ -14,7 +14,7 @@ name: PostgreSQL Cypress Integration Tests on: schedule: - cron: '30 0 * * *' - pull_request: + pull_request_target: types: - labeled - opened diff --git a/.github/workflows/cypress-integration-tests-postgresql.yml b/.github/workflows/cypress-integration-tests-postgresql.yml index f84104f1103..11f39e55b94 100644 --- a/.github/workflows/cypress-integration-tests-postgresql.yml +++ b/.github/workflows/cypress-integration-tests-postgresql.yml @@ -18,7 +18,7 @@ on: workflow_dispatch: schedule: - cron: '30 0 * * *' - pull_request: + pull_request_target: types: - labeled - opened @@ -39,7 +39,7 @@ jobs: cypress-ci-postgresql: if: | github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' - || ( github.event_name == 'pull_request' + || ( github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'e2e') && github.event.pull_request.draft == false )