Skip to content

25.0.0.10_beta

25.0.0.10_beta #25

name: Create Automatic PR for release blogs
on:
push:
branches:
- '**-post'
jobs:
create_pr:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Create Pull Request using GitHub CLI for release blogs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
branch_name="${GITHUB_REF#refs/heads/}"
echo "Creating PR from $branch_name to draft"
gh pr create \
--head "$branch_name" \
--base "draft" \
--title "Update $branch_name into draft" \
--body "This is an auto-generated PR by github actions to update changes from $branch_name into draft." \
--reviewer "navaneethsnair1" \
|| echo "PR creation failed or PR already exists"