diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 168b04d..56be600 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -21,11 +21,3 @@ jobs: - uses: crate-ci/typos@master with: files: ./README.md - pr-title: - name: Check PR title - runs-on: ubuntu-latest - steps: - - uses: Slashgear/action-check-pr-title@v4.3.0 - with: - regexp: "(Add|Update|Remove) .+" - helpMessage: "Example: 'Add MO2'" diff --git a/.github/workflows/pr-title.yaml b/.github/workflows/pr-title.yaml new file mode 100644 index 0000000..bb1d08a --- /dev/null +++ b/.github/workflows/pr-title.yaml @@ -0,0 +1,14 @@ +on: + pull_request: + types: [opened, edited, synchronize] + paths: [README.md] + +jobs: + pr-title: + name: Check PR title + runs-on: ubuntu-latest + steps: + - uses: Slashgear/action-check-pr-title@v4.3.0 + with: + regexp: "(Add|Update|Remove) .+" + helpMessage: "Example: 'Add MO2'"