Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

ci: split labeler workflow to prevent cancellation failures (#8160)

Akshay Agrawalb5aa462c56f6
diff --git a/.github/workflows/enforce-label.yml b/.github/workflows/enforce-label.yml
new file mode 100644
index 0000000000..0b61536013
--- /dev/null
+++ b/.github/workflows/enforce-label.yml
@@ -0,0 +1,19 @@
+name: 🏷️ Enforce Pull Request Label
+
+# Enforces that at least one label is selected on pull requests
+
+on:
+ pull_request:
+ types: [labeled, unlabeled, opened, reopened, edited, synchronize]
+
+permissions:
+ contents: read
+
+jobs:
+ enforce-label:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: yogevbd/[email protected]
+ with:
+ REQUIRED_LABELS_ANY: "enhancement,bug,documentation,internal,preview,dependencies,other"
+ REQUIRED_LABELS_ANY_DESCRIPTION: "🏷️ Select at least one label: ['enhancement','bug','documentation','internal','preview','dependencies','other']"
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml
index e0d753ccb1..5e9da9e453 100644
--- a/.github/workflows/labeler.yml
+++ b/.github/workflows/labeler.yml
@@ -1,17 +1,10 @@
name: 🏷️ Pull Request Labeler
-# Label pull requests based on config in .github/labeler.yml
-# And enforces that at least one label is selected
+# Auto-label pull requests based on config in .github/labeler.yml
on:
pull_request_target:
types: [labeled, unlabeled, opened, reopened, edited, synchronize]
- pull_request:
- types: [labeled, unlabeled, opened, reopened, edited, synchronize]
-
-concurrency:
- group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
- cancel-in-progress: true
permissions:
contents: read
@@ -19,18 +12,8 @@ permissions:
jobs:
auto-label:
- if: github.event_name == 'pull_request_target'
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
-
- enforce-label:
- if: github.event_name == 'pull_request'
- runs-on: ubuntu-latest
- steps:
- - uses: yogevbd/[email protected]
- with:
- REQUIRED_LABELS_ANY: "enhancement,bug,documentation,internal,preview,dependencies,other"
- REQUIRED_LABELS_ANY_DESCRIPTION: "🏷️ Select at least one label: ['enhancement','bug','documentation','internal','preview','dependencies','other']"