diff --git a/.github/workflows/enforce-labels.yml b/.github/workflows/enforce-labels.yml new file mode 100644 index 0000000..7ef5409 --- /dev/null +++ b/.github/workflows/enforce-labels.yml @@ -0,0 +1,17 @@ +--- +name: Enforce Labeling +on: + pull_request_target: + types: [opened, synchronize, reopened, labeled, unlabeled] + branches: + - main + workflow_dispatch: + +jobs: + check_labels: + runs-on: ubuntu-latest + steps: + - name: Check Pull Request Labels + uses: discoverygarden/enforce-label@v1 + with: + required_labels: major,minor,patch,no-update diff --git a/.github/workflows/semver.yml b/.github/workflows/semver.yml new file mode 100644 index 0000000..a29a7e4 --- /dev/null +++ b/.github/workflows/semver.yml @@ -0,0 +1,17 @@ +name: Auto Semver +on: + pull_request_target: + types: closed + branches: + - main +jobs: + update: + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + steps: + - name: Run Auto Semver + uses: discoverygarden/auto-semver@v1 + - name: Update Major Tag + uses: discoverygarden/action-major-tag@v1 + with: + prefix: 'v'