diff --git a/.github/workflows/on-pull-request-to-master.yaml b/.github/workflows/on-pull-request-to-master.yaml new file mode 100644 index 0000000..eb79d34 --- /dev/null +++ b/.github/workflows/on-pull-request-to-master.yaml @@ -0,0 +1,14 @@ +on: + pull_request: + branches: + - master + +jobs: + + format: + uses: ./.github/workflows/format.yaml + secrets: inherit + + check: + uses: ./.github/workflows/check.yaml + secrets: inherit diff --git a/.github/workflows/on-pull-request.yaml b/.github/workflows/on-pull-request-to-release.yaml similarity index 68% rename from .github/workflows/on-pull-request.yaml rename to .github/workflows/on-pull-request-to-release.yaml index bff6aca..c931ab2 100644 --- a/.github/workflows/on-pull-request.yaml +++ b/.github/workflows/on-pull-request-to-release.yaml @@ -1,8 +1,6 @@ on: pull_request: - types: [assigned, opened, synchronize, reopened, labeled, unlabeled] branches: - - master - supermajor - major - minor @@ -11,12 +9,10 @@ on: jobs: format: - if: ${{github.event.pull_request.changed_files > 0}} uses: ./.github/workflows/format.yaml secrets: inherit check: - if: ${{github.event.pull_request.changed_files > 0}} uses: ./.github/workflows/check.yaml secrets: inherit