diff --git a/.github/workflows/enforce-labels.yml b/.github/workflows/enforce-labels.yml new file mode 100644 index 00000000..32bbf521 --- /dev/null +++ b/.github/workflows/enforce-labels.yml @@ -0,0 +1,14 @@ +name: Enforce PR labels + +on: + pull_request: + types: [labeled, unlabeled, opened, edited, synchronize] + branches: [main] +jobs: + enforce-label: + runs-on: ubuntu-latest + steps: + - uses: yogevbd/enforce-label-action@2.2.2 + with: + REQUIRED_LABELS_ANY: "release:minor,release:major,release:patch,norelease" + REQUIRED_LABELS_ANY_DESCRIPTION: "Select at least one label ['release:minor','release:major','release:patch', 'norelease']" diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml index 1239593b..41dc625b 100644 --- a/.github/workflows/qa.yml +++ b/.github/workflows/qa.yml @@ -103,3 +103,14 @@ jobs: with: slack_webhook: ${{ secrets.SLACK_WEBHOOK }} slack_message: Test QA environment failed. + + release: + runs-on: ubuntu-latest + needs: qa-up + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + steps: + - uses: rymndhng/release-on-push-action@master + with: + bump_version_scheme: patch + tag_prefix: ""