Skip to content

Merge pull request #475 from swakwork/dev #334

Merge pull request #475 from swakwork/dev

Merge pull request #475 from swakwork/dev #334

Workflow file for this run

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 }}