diff --git a/.github/workflows/ci-aqua-security-trivy-tests.yml b/.github/workflows/ci-aqua-security-trivy-tests.yml index 80253a971f9..a7d5bc81f1e 100644 --- a/.github/workflows/ci-aqua-security-trivy-tests.yml +++ b/.github/workflows/ci-aqua-security-trivy-tests.yml @@ -4,6 +4,11 @@ on: branches: - main pull_request: + types: + - opened + - reopened + - synchronize + - ready_for_review branches: - main schedule: @@ -11,6 +16,7 @@ on: jobs: build: name: trivy-tests + if: github.event.pull_request.draft == false runs-on: ubuntu-20.04 steps: - name: Checkout code diff --git a/.github/workflows/ci-dgraph-load-tests.yml b/.github/workflows/ci-dgraph-load-tests.yml index f77d808a75e..9bb0587de9f 100644 --- a/.github/workflows/ci-dgraph-load-tests.yml +++ b/.github/workflows/ci-dgraph-load-tests.yml @@ -4,12 +4,18 @@ on: branches: - main pull_request: + types: + - opened + - reopened + - synchronize + - ready_for_review branches: - main schedule: - cron: "0 * * * *" jobs: dgraph-load-tests: + if: github.event.pull_request.draft == false runs-on: self-hosted steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/ci-dgraph-tests.yml b/.github/workflows/ci-dgraph-tests.yml index c832775a5e1..8496980fbae 100644 --- a/.github/workflows/ci-dgraph-tests.yml +++ b/.github/workflows/ci-dgraph-tests.yml @@ -4,12 +4,18 @@ on: branches: - main pull_request: + types: + - opened + - reopened + - synchronize + - ready_for_review branches: - main schedule: - cron: "0 * * * *" jobs: dgraph-tests: + if: github.event.pull_request.draft == false runs-on: self-hosted steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/ci-golang-lint.yml b/.github/workflows/ci-golang-lint.yml index 89d5fbc4afd..829d9ad65c7 100644 --- a/.github/workflows/ci-golang-lint.yml +++ b/.github/workflows/ci-golang-lint.yml @@ -4,12 +4,18 @@ on: branches: - main pull_request: + types: + - opened + - reopened + - synchronize + - ready_for_review branches: - main schedule: - cron: "0 * * * *" jobs: golang-lint: + if: github.event.pull_request.draft == false name: lint runs-on: ubuntu-latest steps: