diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index df74f2e..db12bca 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -52,7 +52,7 @@ jobs: release: needs: [ build, integration-test ] if: github.event_name == 'push' && github.ref == 'refs/heads/main' - runs-on: ubuntu-latest + runs-on: ubuntu-slim permissions: contents: write steps: @@ -63,9 +63,6 @@ jobs: - name: Bump version id: version uses: paulhatch/semantic-version@v6.0.2 - with: - major_pattern: "(MAJOR)" - minor_pattern: "(MINOR)" - name: Create GitHub tag and release uses: softprops/action-gh-release@v3.0.1 diff --git a/.github/workflows/conventional-commits.yml b/.github/workflows/conventional-commits.yml new file mode 100644 index 0000000..2d53640 --- /dev/null +++ b/.github/workflows/conventional-commits.yml @@ -0,0 +1,33 @@ +name: conventional-commits +run-name: conventional-commits by @${{ github.actor }} + +on: + pull_request: + types: [ opened, reopened, edited, synchronize ] + push: + branches: [ main ] + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + +jobs: + check-pr-title: + if: github.event_name == 'pull_request' && github.event.action != 'synchronize' + runs-on: ubuntu-slim + permissions: + pull-requests: read + steps: + - uses: amannn/action-semantic-pull-request@v6 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + check-commits: + if: github.event_name == 'push' || github.event_name == 'pull_request' && github.event.action != 'edited' + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: read + steps: + - uses: actions/checkout@v6 + - uses: wagoid/commitlint-github-action@v6 diff --git a/.github/workflows/dependency-submission.yml b/.github/workflows/dependency-submission.yml index 03eb214..0db2698 100644 --- a/.github/workflows/dependency-submission.yml +++ b/.github/workflows/dependency-submission.yml @@ -11,7 +11,7 @@ concurrency: jobs: dependency-submission: - runs-on: ubuntu-latest + runs-on: ubuntu-slim permissions: contents: write steps: