open_pull_request.yml 705 B

1234567891011121314151617181920212223242526272829303132
  1. name: Open a PR to main
  2. on:
  3. push:
  4. branches:
  5. - dev
  6. workflow_dispatch:
  7. env:
  8. MESSAGE: Merge branch `${{ github.head_ref || github.ref_name }}` to `main`
  9. jobs:
  10. pull-request:
  11. name: Open pull request
  12. runs-on: ubuntu-latest
  13. steps:
  14. - name: Checkout
  15. uses: actions/checkout@v4
  16. - name: Open pull request
  17. uses: repo-sync/pull-request@v2
  18. with:
  19. destination_branch: 'main'
  20. pr_title: 'chore: ${{ env.MESSAGE }}'
  21. pr_body: |
  22. This pull request will ${{ env.MESSAGE }}.
  23. ## Dependencies before merge
  24. - [ ] https://github.com/revanced/revanced-patches
  25. pr_draft: true