Skip to content

armgit / moli

Public Imported from GitHub
0

Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust

ci: cancel validation when pull requests close

ldm036f70c2e6fb6
diff --git a/.github/workflows/cancel-pr-ci.yml b/.github/workflows/cancel-pr-ci.yml
new file mode 100644
index 000000000..b1f31940e
--- /dev/null
+++ b/.github/workflows/cancel-pr-ci.yml
@@ -0,0 +1,22 @@
+name: Cancel closed PR CI
+
+on:
+ pull_request:
+ types: [closed]
+
+# Concurrency groups are shared across workflows in the repository. Starting
+# this lightweight run cancels the matching validation run without scheduling
+# the full CI suite for a pull request that can no longer be merged.
+concurrency:
+ group: ci-${{ github.event.pull_request.number }}
+ cancel-in-progress: true
+
+permissions: {}
+
+jobs:
+ cancel:
+ name: Cancel superseded validation
+ runs-on: ubuntu-latest
+ steps:
+ - name: Record cancellation
+ run: echo "Cancelled validation for closed PR #${{ github.event.pull_request.number }}."