diff --git a/.github/workflows/pr-change-set.yaml b/.github/workflows/pr-change-set.yaml new file mode 100644 index 00000000..8efcbce5 --- /dev/null +++ b/.github/workflows/pr-change-set.yaml @@ -0,0 +1,21 @@ +# This workflow checks and tests the package code, and it builds all package +# artifacts whenever there were changes to a pull request. + +name: Check change set +on: + pull_request: + branches: + - main + - staging + types: + - opened + - reopened + - synchronize +permissions: + contents: read + +jobs: + build: + uses: ./.github/workflows/build.yaml + permissions: + contents: read diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pr-conventional-commits.yaml similarity index 90% rename from .github/workflows/pull-request.yaml rename to .github/workflows/pr-conventional-commits.yaml index 53ec82fc..9b8f5e3f 100644 --- a/.github/workflows/pull-request.yaml +++ b/.github/workflows/pr-conventional-commits.yaml @@ -3,7 +3,7 @@ # tool to check the title of the PR and all commit messages of the branch # which triggers this Action. -name: Pull Request +name: Check conventional commits on: pull_request: branches: @@ -19,7 +19,6 @@ permissions: jobs: conventional-commits: - name: Check PR title and commit messages runs-on: ubuntu-latest steps: @@ -55,9 +54,3 @@ jobs: PR_BASE_REF: ${{ github.event.pull_request.base.ref }} PR_HEAD_REF: ${{ github.event.pull_request.head.ref }} PR_HEAD_REPO_CLONE_URL: ${{ github.event.pull_request.head.repo.clone_url }} - - build: - needs: conventional-commits - uses: ./.github/workflows/build.yaml - permissions: - contents: read