Browse Source

chore: use semantic-commit-action (#33865)

* chore: use semantic-commit-action

* Update semantic.yml

Co-authored-by: Jeremy Rose <[email protected]>
Co-authored-by: Jeremy Rose <[email protected]>
trop[bot] 3 years ago
parent
commit
7d46fb5d40
1 changed files with 20 additions and 0 deletions
  1. 20 0
      .github/workflows/semantic.yml

+ 20 - 0
.github/workflows/semantic.yml

@@ -0,0 +1,20 @@
+name: "Check Semantic Commit"
+
+on:
+  pull_request_target:
+    types:
+      - opened
+      - edited
+      - synchronize
+
+jobs:
+  main:
+    name: Validate PR Title
+    runs-on: ubuntu-latest
+    steps:
+      - name: semantic-pull-request
+        uses: amannn/action-semantic-pull-request@v4
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+        with:
+          validateSingleCommit: false