Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
ci(sdk-tests): cancel superseded runs on the same PR (#1937)
Charlie Wysea9e893bcb9b4
diff --git a/.github/workflows/sdk_tests.yml b/.github/workflows/sdk_tests.ymlindex 7c8443217..65e6d741a 100644--- a/.github/workflows/sdk_tests.yml+++ b/.github/workflows/sdk_tests.yml@@ -9,6 +9,15 @@ on:permissions:contents: read+# A new push to a PR supersedes its in-flight run, so cancel it instead of+# letting both runs build the same test templates in parallel. Only first+# attempts of PR runs share the per-PR group: a rerun of an older commit must+# not cancel the current head's run, and manual dispatches must not replace+# each other in the group's single pending slot, so both get their own group.+concurrency:+ group: ${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.run_attempt == '1') && format('pr-{0}', github.event.pull_request.number) || format('run-{0}', github.run_id) }}+ cancel-in-progress: true+jobs:changes:name: Detect changes