From ed8b338a6150f8e5e39f4635c2de46f58a03d72b Mon Sep 17 00:00:00 2001 From: Andrea Giannantonio Date: Mon, 8 Jan 2024 16:28:03 +0100 Subject: [PATCH] feat(ci): commit lint --- .github/workflows/commit-lint.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/commit-lint.yml diff --git a/.github/workflows/commit-lint.yml b/.github/workflows/commit-lint.yml new file mode 100644 index 0000000..d43e12f --- /dev/null +++ b/.github/workflows/commit-lint.yml @@ -0,0 +1,15 @@ +name: commit-lint + +on: [pull_request] + +jobs: + commit-lint: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: ${{ github.event.pull_request.commits }} + ref: ${{ github.event.pull_request.head.sha }} + - uses: bugbundle/commits@v1.1.0 + id: commits + - run: echo ${{ steps.commits.outputs.major }}.${{ steps.commits.outputs.minor }}.${{ steps.commits.outputs.patch }}