Skip to content

Commit

Permalink
Merge pull request #22 from SchemaApp/issue17788
Browse files Browse the repository at this point in the history
Feat(workflows): Add sync-labels and enforce-labels workflows
  • Loading branch information
shawnhind authored Jan 1, 2025
2 parents 64b2494 + 1f0c5a7 commit 8729967
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/enforce-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Enforce PR Labels

on:
pull_request:
types: [labeled, unlabeled, opened, edited, synchronize]

jobs:
enforce-labels:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

- name: Enforce PR Labels
uses: SchemaApp/SchemaApp/.github/actions/label-enforcer@master
14 changes: 14 additions & 0 deletions .github/workflows/sync-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Sync Labels from Central Repository

on:
repository_dispatch:
types:
- sync_labels

jobs:
call-reusable-workflow:
uses: SchemaApp/SchemaApp/.github/workflows/sync-labels.yml@master
with:
labels_url: https://raw.githubusercontent.com/SchemaApp/SchemaApp/master/.github/labels.yml
secrets:
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

0 comments on commit 8729967

Please sign in to comment.