Separate label enforcer job to separate workflow (#982)
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
This commit is contained in:
parent
aab2b39c50
commit
55da71cd90
2 changed files with 16 additions and 9 deletions
16
.github/workflows/enforce-lablel.yml
vendored
Normal file
16
.github/workflows/enforce-lablel.yml
vendored
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
name: Label Enforcer
|
||||||
|
|
||||||
|
# Run action on pull request creation, reopening, or label changes
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [opened, reopened, labeled, unlabeled]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
# Ensure that PR has desired labels
|
||||||
|
enforce-label:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: yogevbd/enforce-label-action@2.2.2
|
||||||
|
with:
|
||||||
|
REQUIRED_LABELS_ANY: "automerge,breaking-change,bug-fix,enhancement,feature,translation"
|
||||||
|
REQUIRED_LABELS_ANY_DESCRIPTION: "The PR must have at least one these labels: ['automerge','breaking-change','bug-fix','enhancement','feature','translation']"
|
9
.github/workflows/pull-request.yml
vendored
9
.github/workflows/pull-request.yml
vendored
|
@ -73,15 +73,6 @@ jobs:
|
||||||
timeout: 5
|
timeout: 5
|
||||||
urls: "${{ steps.preview.outputs.url }},${{ steps.preview.outputs.url }}/posts/,${{ steps.preview.outputs.url }}/posts/markdown-sample/,${{ steps.preview.outputs.url }}/posts/shortcodes/"
|
urls: "${{ steps.preview.outputs.url }},${{ steps.preview.outputs.url }}/posts/,${{ steps.preview.outputs.url }}/posts/markdown-sample/,${{ steps.preview.outputs.url }}/posts/shortcodes/"
|
||||||
|
|
||||||
# Ensure that PR has desired labels
|
|
||||||
enforce-label:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: yogevbd/enforce-label-action@2.2.2
|
|
||||||
with:
|
|
||||||
REQUIRED_LABELS_ANY: "automerge,breaking-change,bug-fix,enhancement,feature,translation"
|
|
||||||
REQUIRED_LABELS_ANY_DESCRIPTION: "The PR must have at least one these labels: ['automerge','breaking-change','bug-fix','enhancement','feature','translation']"
|
|
||||||
|
|
||||||
# Check for any broken links
|
# Check for any broken links
|
||||||
markdown-link-check:
|
markdown-link-check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue