Răsfoiți Sursa

Merge pull request #4264 from weseek/chore/skip-workflows

chore: Skip jobs by PR label
Yuki Takei 4 ani în urmă
părinte
comite
51eba0b619

+ 13 - 9
.github/release-drafter.yml

@@ -20,23 +20,27 @@ change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add
 autolabeler:
 autolabeler:
   - label: 'feature'
   - label: 'feature'
     branch:
     branch:
-      - '/feat\/.+/'
+      - '/^feat\/.+/'
   - label: 'improvement'
   - label: 'improvement'
     branch:
     branch:
-      - '/imprv\/.+/'
+      - '/^imprv\/.+/'
   - label: 'bug'
   - label: 'bug'
     branch:
     branch:
-      - '/fix\/.+/'
+      - '/^fix\/.+/'
     title:
     title:
-      - '/fix/i'
+      - '/^fix/i'
   - label: 'support'
   - label: 'support'
     branch:
     branch:
-      - '/support\/.+/'
+      - '/^support\/.+/'
     title:
     title:
-      - '/chore/i'
-      - '/ci/i'
-      - '/docs/i'
-      - '/test/i'
+      - '/^ci/i'
+      - '/^docs/i'
+      - '/^test/i'
+  - label: 'exclude from changelog'
+    branch:
+      - '/^chore\/.+/'
+    title:
+      - '/^chore/i'
 
 
 exclude-labels:
 exclude-labels:
   - 'exclude from changelog'
   - 'exclude from changelog'

+ 2 - 1
.github/workflows/ci-slackbot-proxy.yml

@@ -5,7 +5,8 @@ on:
     branches-ignore:
     branches-ignore:
       - release/**
       - release/**
       - rc/**
       - rc/**
-      - tmp/**
+      - chore/**
+      - support/prepare-v**
 
 
 jobs:
 jobs:
 
 

+ 2 - 1
.github/workflows/ci.yml

@@ -5,7 +5,8 @@ on:
     branches-ignore:
     branches-ignore:
       - release/**
       - release/**
       - rc/**
       - rc/**
-      - tmp/**
+      - chore/**
+      - support/prepare-v**
 
 
 jobs:
 jobs:
 
 

+ 7 - 0
.github/workflows/pr-to-master.yml

@@ -13,6 +13,8 @@ jobs:
   auto-labeling:
   auto-labeling:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
 
 
+    if: ${{ !contains(github.event.pull_request.labels.*.name, 'exclude from changelog') }}
+
     steps:
     steps:
       - uses: release-drafter/release-drafter@v5
       - uses: release-drafter/release-drafter@v5
         with:
         with:
@@ -22,6 +24,11 @@ jobs:
 
 
   check-title:
   check-title:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
+
+    if: |
+      (!contains( github.event.pull_request.labels.*.name, 'exclude from changelog' ) &&
+        !startsWith( github.ref, 'refs/heads/chore/' ))
+
     steps:
     steps:
       - uses: amannn/action-semantic-pull-request@v3.4.2
       - uses: amannn/action-semantic-pull-request@v3.4.2
         with:
         with: