From eb5f7381790cbcd2384a03959f6b9d78124a9011 Mon Sep 17 00:00:00 2001 From: "CTFang@WireLab" Date: Wed, 9 Oct 2024 03:52:56 +0000 Subject: [PATCH] fix: actions adjust and add commit msg check --- .github/workflows/commit-msg-check.yml | 12 ++++++++++++ .github/workflows/go.yml | 1 - .github/workflows/golangci-lint.yml | 1 - 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/commit-msg-check.yml diff --git a/.github/workflows/commit-msg-check.yml b/.github/workflows/commit-msg-check.yml new file mode 100644 index 0000000..050f268 --- /dev/null +++ b/.github/workflows/commit-msg-check.yml @@ -0,0 +1,12 @@ +name: 'Commit Message Check' + +on: + pull_request: + +jobs: + build: + name: Conventional Commits + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: webiny/action-conventional-commits@v1.3.0 \ No newline at end of file diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 2ff02bf..18212d5 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -4,7 +4,6 @@ on: push: branches: [ main ] pull_request: - branches: [ main ] jobs: build: diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 4fdc07a..0e0fed8 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -6,7 +6,6 @@ on: - v* branches: [ main ] pull_request: - branches: [ main ] jobs: golangci: