Skip to content

.github/workflows/auto-pull-request.yml #347

.github/workflows/auto-pull-request.yml

.github/workflows/auto-pull-request.yml #347

name: Create PR on Branch Creation
on:
create:
permissions:
contents: write
pull-requests: write
jobs:
pull-request:
if: github.ref_type != 'tag'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
title: "PR for new branch: ${{ github.ref_name }}"
body: "Automatically created pull request for the branch ${{ github.ref_name }}."