no-merge-commits.yml 485 B

123456789101112131415161718192021
  1. name: Commits
  2. on:
  3. pull_request:
  4. branches: [ main ]
  5. concurrency:
  6. group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
  7. cancel-in-progress: true
  8. jobs:
  9. no-merge-commits:
  10. name: No Merge Commits
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: Checkout
  14. uses: actions/checkout@v3
  15. - name: Run test
  16. uses: NexusPHP/no-merge-commits@v2.1.0
  17. with:
  18. token: ${{ secrets.GITHUB_TOKEN }}