diff --git a/.github/workflows/enforce-labels.yml b/.github/workflows/enforce-labels.yml new file mode 100644 index 0000000..e7c8533 --- /dev/null +++ b/.github/workflows/enforce-labels.yml @@ -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 diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml new file mode 100644 index 0000000..119f162 --- /dev/null +++ b/.github/workflows/sync-labels.yml @@ -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 }} \ No newline at end of file