Skip to content
This repository has been archived by the owner on Jan 12, 2025. It is now read-only.

Commit

Permalink
add action
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt committed Oct 11, 2024
1 parent c288a1f commit 6b765f3
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/auto-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Auto Create Pull Request

on:
push:
branches-ignore:
- main

jobs:
create-pull-request:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GH_TOKEN }}
commit-message: Auto PR from ${{ github.ref_name }}
title: "Auto PR: ${{ github.ref_name }} -> main"
body: |
This is an automated pull request created from the branch ${{ github.ref_name }}.
Changes in this PR:
${{ github.event.head_commit.message }}
branch: ${{ github.ref_name }}
base: main
delete-branch: false

0 comments on commit 6b765f3

Please sign in to comment.