Merge pull request #457 from lgernierO/dev #325
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Open a PR to main | |
| on: | |
| push: | |
| branches: | |
| - dev | |
| workflow_dispatch: | |
| env: | |
| TITLE: 'chore: Merge branch `${{ github.head_ref || github.ref_name }}` to `main`' | |
| BODY: 'This pull request will `${{ github.head_ref || github.ref_name }}` to `main`.' | |
| jobs: | |
| pull-request: | |
| name: Open pull request | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Open pull request | |
| run: gh pr create -d -B main -H dev --title '${{ env.TITLE }}' --body '${{ env.BODY }}' || gh pr edit -B main --title '${{ env.TITLE }}' --body '${{ env.BODY }}' | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} |