Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
ci: skip duplicate actions (#34168)
Stephen Zhou2394e45ec7e6
diff --git a/.github/workflows/main-ci.yml b/.github/workflows/main-ci.ymlindex 2faa5dbcdbd..6fffbefce01 100644--- a/.github/workflows/main-ci.yml+++ b/.github/workflows/main-ci.yml@@ -10,6 +10,7 @@ on:branches: ["main"]permissions:+ actions: writecontents: writepull-requests: writechecks: write@@ -20,9 +21,24 @@ concurrency:cancel-in-progress: truejobs:+ pre_job:+ name: Skip Duplicate Checks+ runs-on: ubuntu-latest+ outputs:+ should_skip: ${{ steps.skip_check.outputs.should_skip || 'false' }}+ steps:+ - id: skip_check+ continue-on-error: true+ uses: fkirc/skip-duplicate-actions@f75f66ce1886f00957d99748a42c724f4330bdcf # v5.3.1+ with:+ cancel_others: 'true'+ concurrent_skipping: same_content_newer+# Check which paths were changed to determine which tests to runcheck-changes:name: Check Changed Files+ needs: pre_job+ if: needs.pre_job.outputs.should_skip != 'true'runs-on: ubuntu-latestoutputs:api-changed: ${{ steps.changes.outputs.api }}@@ -56,15 +72,19 @@ jobs:# Run tests in parallel while always emitting stable required checks.api-tests-run:name: Run API Tests- needs: check-changes- if: needs.check-changes.outputs.api-changed == 'true'+ needs:+ - pre_job+ - check-changes+ if: needs.pre_job.outputs.should_skip != 'true' && needs.check-changes.outputs.api-changed == 'true'uses: ./.github/workflows/api-tests.ymlsecrets: inheritapi-tests-skip:name: Skip API Tests- needs: check-changes- if: needs.check-changes.outputs.api-changed != 'true'+ needs:+ - pre_job+ - check-changes+ if: needs.pre_job.outputs.should_skip != 'true' && needs.check-changes.outputs.api-changed != 'true'runs-on: ubuntu-lateststeps:- name: Report skipped API tests@@ -74,6 +94,7 @@ jobs:name: API Testsif: ${{ always() }}needs:+ - pre_job- check-changes- api-tests-run- api-tests-skip@@ -81,10 +102,16 @@ jobs:steps:- name: Finalize API Tests statusenv:+ SHOULD_SKIP_WORKFLOW: ${{ needs.pre_job.outputs.should_skip }}TESTS_CHANGED: ${{ needs.check-changes.outputs.api-changed }}RUN_RESULT: ${{ needs.api-tests-run.result }}SKIP_RESULT: ${{ needs.api-tests-skip.result }}run: |+ if [[ "$SHOULD_SKIP_WORKFLOW" == 'true' ]]; then+ echo "API tests were skipped because this workflow run duplicated a successful or newer run."+ exit 0+ fi+if [[ "$TESTS_CHANGED" == 'true' ]]; thenif [[ "$RUN_RESULT" == 'success' ]]; thenecho "API tests ran successfully."@@ -105,15 +132,19 @@ jobs:web-tests-run:name: Run Web Tests- needs: check-changes- if: needs.check-changes.outputs.web-changed == 'true'+ needs:+ - pre_job+ - check-changes+ if: needs.pre_job.outputs.should_skip != 'true' && needs.check-changes.outputs.web-changed == 'true'uses: ./.github/workflows/web-tests.ymlsecrets: inheritweb-tests-skip:name: Skip Web Tests- needs: check-changes- if: needs.check-changes.outputs.web-changed != 'true'+ needs:+ - pre_job+ - check-changes+ if: needs.pre_job.outputs.should_skip != 'true' && needs.check-changes.outputs.web-changed != 'true'runs-on: ubuntu-lateststeps:- name: Report skipped web tests@@ -123,6 +154,7 @@ jobs:name: Web Testsif: ${{ always() }}needs:+ - pre_job- check-changes- web-tests-run- web-tests-skip@@ -130,10 +162,16 @@ jobs:steps:- name: Finalize Web Tests statusenv:+ SHOULD_SKIP_WORKFLOW: ${{ needs.pre_job.outputs.should_skip }}TESTS_CHANGED: ${{ needs.check-changes.outputs.web-changed }}RUN_RESULT: ${{ needs.web-tests-run.result }}SKIP_RESULT: ${{ needs.web-tests-skip.result }}run: |+ if [[ "$SHOULD_SKIP_WORKFLOW" == 'true' ]]; then+ echo "Web tests were skipped because this workflow run duplicated a successful or newer run."+ exit 0+ fi+if [[ "$TESTS_CHANGED" == 'true' ]]; thenif [[ "$RUN_RESULT" == 'success' ]]; thenecho "Web tests ran successfully."@@ -154,18 +192,24 @@ jobs:style-check:name: Style Check+ needs: pre_job+ if: needs.pre_job.outputs.should_skip != 'true'uses: ./.github/workflows/style.ymlvdb-tests-run:name: Run VDB Tests- needs: check-changes- if: needs.check-changes.outputs.vdb-changed == 'true'+ needs:+ - pre_job+ - check-changes+ if: needs.pre_job.outputs.should_skip != 'true' && needs.check-changes.outputs.vdb-changed == 'true'uses: ./.github/workflows/vdb-tests.ymlvdb-tests-skip:name: Skip VDB Tests- needs: check-changes- if: needs.check-changes.outputs.vdb-changed != 'true'+ needs:+ - pre_job+ - check-changes+ if: needs.pre_job.outputs.should_skip != 'true' && needs.check-changes.outputs.vdb-changed != 'true'runs-on: ubuntu-lateststeps:- name: Report skipped VDB tests@@ -175,6 +219,7 @@ jobs:name: VDB Testsif: ${{ always() }}needs:+ - pre_job- check-changes- vdb-tests-run- vdb-tests-skip@@ -182,10 +227,16 @@ jobs:steps:- name: Finalize VDB Tests statusenv:+ SHOULD_SKIP_WORKFLOW: ${{ needs.pre_job.outputs.should_skip }}TESTS_CHANGED: ${{ needs.check-changes.outputs.vdb-changed }}RUN_RESULT: ${{ needs.vdb-tests-run.result }}SKIP_RESULT: ${{ needs.vdb-tests-skip.result }}run: |+ if [[ "$SHOULD_SKIP_WORKFLOW" == 'true' ]]; then+ echo "VDB tests were skipped because this workflow run duplicated a successful or newer run."+ exit 0+ fi+if [[ "$TESTS_CHANGED" == 'true' ]]; thenif [[ "$RUN_RESULT" == 'success' ]]; thenecho "VDB tests ran successfully."@@ -206,14 +257,18 @@ jobs:db-migration-test-run:name: Run DB Migration Test- needs: check-changes- if: needs.check-changes.outputs.migration-changed == 'true'+ needs:+ - pre_job+ - check-changes+ if: needs.pre_job.outputs.should_skip != 'true' && needs.check-changes.outputs.migration-changed == 'true'uses: ./.github/workflows/db-migration-test.ymldb-migration-test-skip:name: Skip DB Migration Test- needs: check-changes- if: needs.check-changes.outputs.migration-changed != 'true'+ needs:+ - pre_job+ - check-changes+ if: needs.pre_job.outputs.should_skip != 'true' && needs.check-changes.outputs.migration-changed != 'true'runs-on: ubuntu-lateststeps:- name: Report skipped DB migration tests@@ -223,6 +278,7 @@ jobs:name: DB Migration Testif: ${{ always() }}needs:+ - pre_job- check-changes- db-migration-test-run- db-migration-test-skip@@ -230,10 +286,16 @@ jobs:steps:- name: Finalize DB Migration Test statusenv:+ SHOULD_SKIP_WORKFLOW: ${{ needs.pre_job.outputs.should_skip }}TESTS_CHANGED: ${{ needs.check-changes.outputs.migration-changed }}RUN_RESULT: ${{ needs.db-migration-test-run.result }}SKIP_RESULT: ${{ needs.db-migration-test-skip.result }}run: |+ if [[ "$SHOULD_SKIP_WORKFLOW" == 'true' ]]; then+ echo "DB migration tests were skipped because this workflow run duplicated a successful or newer run."+ exit 0+ fi+if [[ "$TESTS_CHANGED" == 'true' ]]; thenif [[ "$RUN_RESULT" == 'success' ]]; thenecho "DB migration tests ran successfully."