Skip to content

Commit

Permalink
restore CI handling of non-draft PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
lisac committed May 3, 2024
1 parent 1c240f4 commit 3dfab3c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ concurrency:
cancel-in-progress: true

jobs:
nondraft-pr:
# Adding an `if:` that evaluates to false for this nondraft-pr job prevents other dependent jobs from running.
# For github.event.pull_request fields, see
# https://docs.github.com/en/webhooks-and-events/webhooks/webhook-events-and-payloads#pull_request
if: github.event_name != 'pull_request' ||
(github.event_name == 'pull_request' && !github.event.pull_request.draft )
runs-on: ubuntu-latest
steps:
- name: "DEBUG"
run: |
echo "${{ github.event_name }} ${{ github.event.pull_request.draft }}"
lint-and-test:
uses: ./.github/workflows/test-code.yml
Expand All @@ -28,25 +39,31 @@ jobs:
secrets: inherit

container-healthchecks:
needs: nondraft-pr
uses: ./.github/workflows/container-healthchecks.yml
secrets: inherit

xample-domain:
needs: nondraft-pr
uses: ./.github/workflows/xample-integration-test.yml
secrets: inherit

svc-bgs-api:
needs: nondraft-pr
uses: ./.github/workflows/svc-bgs-api-integration-test.yml
secrets: inherit

svc-bip-api:
needs: nondraft-pr
uses: ./.github/workflows/svc-bip-api-integration-test.yml
secrets: inherit

svc-bie-kafka-end-to-end:
needs: nondraft-pr
uses: ./.github/workflows/bie-kafka-end2end-test.yml
secrets: inherit

ee-ep-merge-end-to-end:
needs: nondraft-pr
uses: ./.github/workflows/ee-ep-merge-end-to-end.yml
secrets: inherit

0 comments on commit 3dfab3c

Please sign in to comment.