no-merge-commits.yml 467 B

1234567891011121314151617181920
  1. name: No Merge 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. runs-on: ubuntu-latest
  11. steps:
  12. - name: Checkout
  13. uses: actions/checkout@v4
  14. - name: Run test
  15. uses: NexusPHP/no-merge-commits@v2.1.0
  16. with:
  17. token: ${{ secrets.GITHUB_TOKEN }}