diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml new file mode 100644 index 0000000..4daef2e --- /dev/null +++ b/.github/workflows/commitlint.yml @@ -0,0 +1,19 @@ +name: commit-linter +on: + push: + branches-ignore: + - main + +permissions: + contents: read + pull-requests: read + +jobs: + commitlint: + name: commit-lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: wagoid/commitlint-github-action@v6 + if: ${{ github.actor != 'dependabot[bot]' }} + name: commit linter \ No newline at end of file diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0d9971d..8df58b1 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,4 +1,4 @@ -name: linters +name: golang-linter on: push: @@ -16,7 +16,4 @@ jobs: with: go-version: stable - name: golangci-lint - uses: golangci/golangci-lint-action@v6 - - uses: wagoid/commitlint-github-action@v6 - if: ${{ github.actor != 'dependabot[bot]' }} - name: commit linter \ No newline at end of file + uses: golangci/golangci-lint-action@v6 \ No newline at end of file