From 24f68975326b44a8cfc53c0ea92a8ae5f735a193 Mon Sep 17 00:00:00 2001 From: Sonic Shih Date: Sun, 2 Aug 2026 23:07:46 +0800 Subject: [PATCH 1/2] ci: keep Prediction Markets main runs alive --- .github/scripts/test-select-rust-ci-scope.sh | 1 + .github/workflows/ploy-ci.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/scripts/test-select-rust-ci-scope.sh b/.github/scripts/test-select-rust-ci-scope.sh index 4806be001..f2baa1a80 100755 --- a/.github/scripts/test-select-rust-ci-scope.sh +++ b/.github/scripts/test-select-rust-ci-scope.sh @@ -227,6 +227,7 @@ grep -Fq 'test-polymarket-market-recorder-release.sh' <<<"$recorder_block" grep -Fqx " if: always() && needs.scope.outputs.toolchain == 'true'" "$ci_workflow" ploy_workflow="$script_dir/../workflows/ploy-ci.yml" +grep -Fqx " cancel-in-progress: \${{ github.ref != 'refs/heads/main' }}" "$ploy_workflow" [[ $(grep -Fxc ' branches: [main, develop]' "$ploy_workflow") -eq 2 ]] grep -Fqx ' needs: image-smoke-selector' "$ploy_workflow" grep -Fqx "$always_condition" "$ploy_workflow" diff --git a/.github/workflows/ploy-ci.yml b/.github/workflows/ploy-ci.yml index 624f21d72..af3d6bcd5 100644 --- a/.github/workflows/ploy-ci.yml +++ b/.github/workflows/ploy-ci.yml @@ -17,7 +17,7 @@ on: concurrency: group: prediction-markets-${{ github.ref }} - cancel-in-progress: true + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} permissions: contents: read From 370c1d7f5e2f4a11f36e316e5023736eb1b9cd3c Mon Sep 17 00:00:00 2001 From: Sonic Shih Date: Sun, 2 Aug 2026 23:20:40 +0800 Subject: [PATCH 2/2] fix(ci): isolate pending main runs --- .github/scripts/test-select-rust-ci-scope.sh | 1 + .github/workflows/ploy-ci.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/scripts/test-select-rust-ci-scope.sh b/.github/scripts/test-select-rust-ci-scope.sh index f2baa1a80..238a1684b 100755 --- a/.github/scripts/test-select-rust-ci-scope.sh +++ b/.github/scripts/test-select-rust-ci-scope.sh @@ -227,6 +227,7 @@ grep -Fq 'test-polymarket-market-recorder-release.sh' <<<"$recorder_block" grep -Fqx " if: always() && needs.scope.outputs.toolchain == 'true'" "$ci_workflow" ploy_workflow="$script_dir/../workflows/ploy-ci.yml" +grep -Fqx " group: prediction-markets-\${{ github.ref == 'refs/heads/main' && github.run_id || github.ref }}" "$ploy_workflow" grep -Fqx " cancel-in-progress: \${{ github.ref != 'refs/heads/main' }}" "$ploy_workflow" [[ $(grep -Fxc ' branches: [main, develop]' "$ploy_workflow") -eq 2 ]] grep -Fqx ' needs: image-smoke-selector' "$ploy_workflow" diff --git a/.github/workflows/ploy-ci.yml b/.github/workflows/ploy-ci.yml index af3d6bcd5..1e242194b 100644 --- a/.github/workflows/ploy-ci.yml +++ b/.github/workflows/ploy-ci.yml @@ -16,7 +16,7 @@ on: workflow_dispatch: concurrency: - group: prediction-markets-${{ github.ref }} + group: prediction-markets-${{ github.ref == 'refs/heads/main' && github.run_id || github.ref }} cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} permissions: