diff --git a/.github/workflows/production_run_complete_llm.yml b/.github/workflows/production_run_complete_llm.yml index 883f60da..223c0985 100644 --- a/.github/workflows/production_run_complete_llm.yml +++ b/.github/workflows/production_run_complete_llm.yml @@ -13,6 +13,7 @@ concurrency: jobs: run-production-workflow: runs-on: ubuntu-latest + if: github.event.pull_request.draft == false env: ZENML_STORE_URL: ${{ secrets.ZENML_PROJECTS_HOST }} ZENML_STORE_API_KEY: ${{ secrets.ZENML_PROJECTS_API_KEY }} @@ -56,4 +57,4 @@ jobs: - name: Run pipeline, create pipeline, configure trigger (Production) working-directory: ./llm-complete-guide run: | - python gh_action_rag.py --no-cache --create-template --event-source-id ${{ env.ZENML_EVENT_SOURCE_ID }} --service-account-id ${{ env.ZENML_SERVICE_ACCOUNT_ID }} --config production/rag.yaml --zenml-model-version production \ No newline at end of file + python gh_action_rag.py --no-cache --create-template --event-source-id ${{ env.ZENML_EVENT_SOURCE_ID }} --service-account-id ${{ env.ZENML_SERVICE_ACCOUNT_ID }} --config production/rag.yaml --zenml-model-version production diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index bf353dbd..bad68db6 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -8,6 +8,7 @@ jobs: spell-check: name: spell-check runs-on: ubuntu-latest + if: github.event.pull_request.draft == false env: ZENML_DEBUG: 1 ZENML_ANALYTICS_OPT_IN: false @@ -23,3 +24,4 @@ jobs: markdown-link-check: uses: ./.github/workflows/markdown-link-check.yml + if: github.event.pull_request.draft == false diff --git a/.github/workflows/staging_run_complete_llm.yml b/.github/workflows/staging_run_complete_llm.yml index 01a6cd8a..f8a61f00 100644 --- a/.github/workflows/staging_run_complete_llm.yml +++ b/.github/workflows/staging_run_complete_llm.yml @@ -11,6 +11,7 @@ concurrency: jobs: run-staging-workflow: runs-on: ubuntu-latest + if: github.event.pull_request.draft == false env: ZENML_STORE_URL: ${{ secrets.ZENML_PROJECTS_HOST }} ZENML_STORE_API_KEY: ${{ secrets.ZENML_PROJECTS_API_KEY }} @@ -52,4 +53,4 @@ jobs: - name: Run pipeline (Staging) working-directory: ./llm-complete-guide run: | - python gh_action_rag.py --no-cache --config staging/rag.yaml --zenml-model-version staging \ No newline at end of file + python gh_action_rag.py --no-cache --config staging/rag.yaml --zenml-model-version staging